@Test public void testStringEncoding() throws Exception { String val = (String)parser.parseObject(new StringReader("'\\u1234\\n\\t'"), false); assertEquals("\u1234\n\t", val); }
public Object parseObject(Reader r, boolean wrapped) throws IOException { if (wrapped) { while (true) { int c = r.read(); if (c == -1) { return null; } if (c == '(') { break; } } } return parseObject(new PushbackReader(r), skipWhitespace(r)); }
GoogleJSONParser { public Object parseObject(Reader r, boolean wrapped) throws IOException { if (wrapped) { while (true) { int c = r.read(); if (c == -1) { return null; } if (c == '(') { break; } } } return parseObject(new PushbackReader(r), skipWhitespace(r)); } }
GoogleJSONParser { public Object parseObject(Reader r, boolean wrapped) throws IOException { if (wrapped) { while (true) { int c = r.read(); if (c == -1) { return null; } if (c == '(') { break; } } } return parseObject(new PushbackReader(r), skipWhitespace(r)); }  }
GoogleJSONParser { public Object parseObject(Reader r, boolean wrapped) throws IOException { if (wrapped) { while (true) { int c = r.read(); if (c == -1) { return null; } if (c == '(') { break; } } } return parseObject(new PushbackReader(r), skipWhitespace(r)); }  Object parseObject(Reader r, boolean wrapped); void setCalendar(Calendar cal); }
GoogleJSONParser { public Object parseObject(Reader r, boolean wrapped) throws IOException { if (wrapped) { while (true) { int c = r.read(); if (c == -1) { return null; } if (c == '(') { break; } } } return parseObject(new PushbackReader(r), skipWhitespace(r)); }  Object parseObject(Reader r, boolean wrapped); void setCalendar(Calendar cal);  }