<< Back to previous view

[JSON_PROCESSING_SPEC-27] Remove JsonParser#iterator() method Created: 27/Nov/12  Updated: 03/Dec/12  Resolved: 03/Dec/12

Status: Closed
Project: json-processing-spec
Component/s: None
Affects Version/s: None
Fix Version/s: 1.0-pr

Type: Improvement Priority: Major
Reporter: jitu Assignee: jitu
Resolution: Fixed Votes: 0
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Tags:
Participants: jitu

 Description   

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



 Comments   
Comment by jitu [ 03/Dec/12 09:41 PM ]

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

Generated at Fri Apr 25 04:26:13 UTC 2014 using JIRA 4.0.2#472.