reader.close();
}
@Test
public void testReadString2() throws IOException {
JsonReader reader = new JsonStringReader(" { \"testField\": \"dds\\\"fseee\", \"testField2\": \"d\\nddfd\"}");
Assert.assertThat(reader.isObject(), is(true));
char[] t1 = "dsffsfsf".toCharArray();
char[] ret = reader.readField(t1);
Assert.assertThat(new String(ret), is("testField"));
Assert.assertThat(reader.isColon(), is(true));
String s = reader.readString();
System.out.println(s);
Assert.assertThat(s, is("dds\"fseee"));
char ch = reader.readAndSkipBlank();
Assert.assertThat(ch, is(','));
ret = reader.readField(t1);
Assert.assertThat(new String(ret), is("testField2"));
Assert.assertThat(reader.isColon(), is(true));
s = reader.readString();
System.out.println(s);
Assert.assertThat(s, is("d\nddfd"));
ch = reader.readAndSkipBlank();
Assert.assertThat(ch, is('}'));
reader.close();
}