@Test public void testWrapped() throws Exception { Map<?, ?> val = (Map<?, ?>)parser.parseObject(new StringReader("x({\"y\":100, \"z\" : null})"), true); Map<Object, Object> expected = new LinkedHashMap<Object, Object>(); expected.put("y", Double.valueOf(100)); expected.put("z", null); assertEquals(expected, 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);  }