2425262728293031323334
reader.endObject(); count++; } Assert.assertEquals(10, count); reader.endArray(); reader.close(); } public void test_read_1() throws Exception { JSONReader reader = new JSONReader(new JSONScanner(text));
404142434445464748
reader.endObject(); count++; } Assert.assertEquals(10, count); reader.endArray(); reader.close(); } }
1920212223242526272829
reader.startArray(); int count = 0; while (reader.hasNext()) { reader.startArray(); reader.endArray(); count++; } Assert.assertEquals(10, count); reader.endArray();
reader.endArray(); count++; } Assert.assertEquals(10, count); reader.endArray(); reader.close(); } public void test_read_1() throws Exception { JSONReader reader = new JSONReader(new JSONScanner(text));
3536373839404142434445
reader.endArray(); count++; } Assert.assertEquals(10, count); reader.endArray(); reader.close(); } }
2526272829303132333435
Assert.assertEquals(JSONArray.class, item.getClass()); count++; } Assert.assertEquals(10, count); reader.endArray(); reader.close(); } public void test_read_1() throws Exception { JSONReader reader = new JSONReader(new JSONScanner(text));
414243444546474849
Assert.assertEquals(JSONArray.class, item.getClass()); count++; } Assert.assertEquals(10, count); reader.endArray(); reader.close(); } }
394041424344454647
reader.readObject(); count++; } Assert.assertEquals(10, count); reader.endArray(); reader.close(); } }
2627282930313233343536
} else { throw new Exception("archive data json parse failed!"); } } reader.endArray(); } finally { IOUtils.close(reader); } } }