rules.add(new SingleLineRule(":\"", "\"", value, '\\'));
rules.add(new SingleLineRule("\"", "\"", string, '\\')); //$NON-NLS-2$ //$NON-NLS-1$
WordRule wordRule= new WordRule(new JsonWordDetector(), defaultText);
wordRule.addWord("null", nullValue);
rules.add(wordRule);
rules.add(new WhitespaceRule(new JsonWhitespaceDetector()));
IRule[] result= new IRule[rules.size()];
rules.toArray(result);
setRules(result);
}