New issue 66 by mifritsc...@gmail.com: Auutomatically stop parsing if JSON
stanzais complete
http://code.google.com/p/json-simple/issues/detail?id=66
I'm using json-simple to read JSON stanzas directly from a Reader which in
turn comes from a TCP-Socket. While implementing this, I stumbled over a
behavior in JSONParser. Parse.parse does not return if the stanza is
complete, but wait for a EOF. I extended public Object parse(Reader in,
ContainerFactory containerFactory) throws IOException, ParseException by
adding
if(status==S_IN_FINISHED_VALUE) {
System.out.println("fertig?");
return valueStack.removeFirst();
}
on line 259 (just before the closing while)
I'm using version 1.1, because I didn't find the sources for 1.1.1.
Comment #1 on issue 66 by fangyid...@gmail.com: Auutomatically stop parsing
if JSON stanzais complete
http://code.google.com/p/json-simple/issues/detail?id=66
(No comment was entered for this change.)