Issue Details (XML | Word | Printable)

Key: JSON_PROCESSING_SPEC-27
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: jitu
Reporter: jitu
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
json-processing-spec

Remove JsonParser#iterator() method

Created: 27/Nov/12 09:42 PM   Updated: 03/Dec/12 09:41 PM   Resolved: 03/Dec/12 09:41 PM
Component/s: None
Affects Version/s: None
Fix Version/s: 1.0-pr

Time Tracking:
Not Specified

Tags:
Participants: jitu


 Description  « Hide

Remove JsonParser#iterator() method and replace with hasNext() and next(). The problem with iterator is not returning self-contained events. One has to go back forth between iterator and parser objects. One proposal was to use advance() (instead of hasNext()) and getEvent() (instead of next()), but most users preferred hasNext()/next().

Some of the discussion is at:
http://java.net/projects/json-processing-spec/lists/users/archive/2012-11/message/63



jitu added a comment - 03/Dec/12 09:41 PM

Replaced iterator() method with hasNext()/next() methods.