6465666768697071727374
reader.startObject(); reader.endObject(); Assert.assertTrue(reader.hasNext()); reader.startObject(); reader.endObject(); reader.startObject(); reader.endObject(); Assert.assertFalse(reader.hasNext());
6768697071727374757677
Assert.assertTrue(reader.hasNext()); reader.startObject(); reader.endObject(); reader.startObject(); reader.endObject(); Assert.assertFalse(reader.hasNext()); reader.endObject();
7172737475767778798081
reader.startObject(); reader.endObject(); Assert.assertFalse(reader.hasNext()); reader.endObject(); Exception error = null; try { reader.hasNext(); } catch (Exception ex) {
2324252627282930313233
Integer value = reader.readInteger(); count++; } Assert.assertEquals(10, count); reader.endObject(); reader.close(); } public void test_read_1() throws Exception { String text = "[{},{},{},{},{} ,{},{},{},{},{}]";
2930313233343536373839
Assert.assertEquals("val", reader.readString()); reader.startObject(); Assert.assertEquals("id", reader.readString()); Assert.assertEquals(Integer.valueOf(123), reader.readInteger()); reader.endObject(); reader.endObject(); reader.close(); }
3132333435363738394041
reader.startObject(); Assert.assertEquals("id", reader.readString()); Assert.assertEquals(Integer.valueOf(123), reader.readInteger()); reader.endObject(); reader.endObject(); reader.close(); } public void test_obj_3() throws Exception {
4849505152535455565758
Assert.assertEquals("val", reader.readString()); reader.startObject(); Assert.assertEquals("id", reader.readString()); Assert.assertEquals(Long.valueOf(123), reader.readLong()); reader.endObject(); reader.endObject(); reader.endObject(); reader.close();
5051525354555657585960
reader.startObject(); Assert.assertEquals("id", reader.readString()); Assert.assertEquals(Long.valueOf(123), reader.readLong()); reader.endObject(); reader.endObject(); reader.endObject(); reader.close(); }
5152535455565758596061
Assert.assertEquals("id", reader.readString()); Assert.assertEquals(Long.valueOf(123), reader.readLong()); reader.endObject(); reader.endObject(); reader.endObject(); reader.close(); } }
3233343536373839404142
} store.setRec(list); reader.endArray(); reader.endObject(); reader.close(); } public static class JsonStroe {