2021222324252627282930
reader.startObject(); int count = 0; while (reader.hasNext()) { String key = (String) reader.readObject(); Long value = reader.readLong(); count++; } Assert.assertEquals(10, count);
3738394041424344454647
1819202122232425262728
for (int i = 0; i < 8180; ++i) { buf.append('A'); } buf.append("\\t"); JSONReader reader = new JSONReader(new StringReader(buf.toString())); reader.readObject(); reader.close(); } catch (Exception ex) { error = ex; } Assert.assertNotNull(error);
JSONReader reader = new JSONReader(new StringReader(text)); reader.startObject(); int count = 0; while (reader.hasNext()) { String key = (String) reader.readObject(); Integer value = reader.readInteger(); count++; } Assert.assertEquals(10, count);
3637383940414243444546
JSONReader reader = new JSONReader(new JSONScanner(text)); reader.startObject(); int count = 0; while (reader.hasNext()) { String key = (String) reader.readObject(); Integer value = reader.readInteger(); count++; } Assert.assertEquals(10, count);
1920212223242526272829
JSONReader reader = new JSONReader(new StringReader(text)); reader.startObject(); int count = 0; while (reader.hasNext()) { String key = (String) reader.readObject(); Object value = reader.readObject(); Assert.assertNotNull(key); Assert.assertNotNull(value); count++; }
reader.startObject(); int count = 0; while (reader.hasNext()) { String key = (String) reader.readObject(); Object value = reader.readObject(); Assert.assertNotNull(key); Assert.assertNotNull(value); count++; } Assert.assertEquals(10, count);
JSONReader reader = new JSONReader(new JSONScanner(text)); reader.startObject(); int count = 0; while (reader.hasNext()) { String key = (String) reader.readObject(); Object value = reader.readObject(); Assert.assertNotNull(key); Assert.assertNotNull(value);
3839404142434445464748
reader.startObject(); int count = 0; while (reader.hasNext()) { String key = (String) reader.readObject(); Object value = reader.readObject(); Assert.assertNotNull(key); Assert.assertNotNull(value); count++;
JSONReader reader = new JSONReader(new StringReader(text)); reader.startArray(); int count = 0; while (reader.hasNext()) { Object item = reader.readObject(); Assert.assertEquals(JSONArray.class, item.getClass()); count++; } Assert.assertEquals(10, count);