Issue 66 in json-simple: Auutomatically stop parsing if JSON stanzais complete

1 view
Skip to first unread message

json-...@googlecode.com

unread,
Feb 28, 2012, 3:15:12 AM2/28/12
to json-...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

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.


json-...@googlecode.com

unread,
Mar 27, 2012, 10:57:49 PM3/27/12
to json-...@googlegroups.com
Updates:
Status: Accepted
Labels: -Type-Defect Type-Enhancement

Comment #1 on issue 66 by fangyid...@gmail.com: Auutomatically stop parsing

(No comment was entered for this change.)

Reply all
Reply to author
Forward
0 new messages