public class JSONScannerTest_singQuoteString extends TestCase {
public void test_string() throws Exception {
{
JSONScanner lexer = new JSONScanner("\'中国\'");
lexer.config(Feature.AllowSingleQuotes, true);
lexer.nextToken();
Assert.assertEquals("中国", lexer.stringVal());
}
{
JSONScanner lexer = new JSONScanner("'中国\t\\'\\\"'");