1920212223242526272829
reader.startArray(); int count = 0; while (reader.hasNext()) { reader.startObject(); reader.endObject(); count++; } Assert.assertEquals(10, count); reader.endArray();
3536373839404142434445
2627282930313233343536
Long value = reader.readLong(); count++; } Assert.assertEquals(10, count); reader.endObject(); reader.close(); } public void test_read_1() throws Exception { JSONReader reader = new JSONReader(new JSONScanner(text));
434445464748495051
Long value = reader.readLong(); count++; } Assert.assertEquals(10, count); reader.endObject(); reader.close(); } }
Integer value = reader.readInteger(); count++; } Assert.assertEquals(10, count); reader.endObject(); reader.close(); } public void test_read_1() throws Exception { JSONReader reader = new JSONReader(new JSONScanner(text));
424344454647484950
Integer value = reader.readInteger(); count++; } Assert.assertEquals(10, count); reader.endObject(); reader.close(); } }
2728293031323334353637
Assert.assertNotNull(value); count++; } Assert.assertEquals(10, count); reader.endObject(); reader.close(); } public void test_read_1() throws Exception { JSONReader reader = new JSONReader(new JSONScanner(text));
4748495051525354555657
count++; } Assert.assertEquals(10, count); reader.endObject(); reader.close(); } public void test_read_2() throws Exception { JSONReader reader = new JSONReader(new JSONScanner("{{}:{},{}:{}}"));
5758596061626364656667
JSONReader reader = new JSONReader(new JSONScanner("{{}:{},{}:{}}")); reader.startObject(); Assert.assertTrue(reader.hasNext()); reader.startObject(); reader.endObject(); reader.startObject(); reader.endObject(); Assert.assertTrue(reader.hasNext());
6061626364656667686970
Assert.assertTrue(reader.hasNext()); reader.startObject(); reader.endObject(); reader.startObject(); reader.endObject(); Assert.assertTrue(reader.hasNext()); reader.startObject(); reader.endObject();