Issue Details (XML | Word | Printable)

Key: JSON_PROCESSING_SPEC-48
Type: Improvement Improvement
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: jitu
Votes: 0
Watchers: 0
Operations

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

Add accessor method to consume same type of objects in JsonArray

Created: 25/Jan/13 12:55 AM   Updated: 08/Feb/13 08:01 PM  Due: 07/Feb/13   Resolved: 08/Feb/13 08:01 PM
Component/s: None
Affects Version/s: 1.0-pr
Fix Version/s: 1.0-pfd

Time Tracking:
Not Specified

Tags:
Participants: jitu


 Description  « Hide

Jonathan suggests that API add the following method to consume same type of objects in JsonArray

<T extends JsonValue> List<T> JsonArray#getValuesAs(Class<T>) or
<T extends JsonValue> Iterable<T> JsonArray#getValuesAs(Class<T>)

see the discussion

http://java.net/projects/json-processing-spec/lists/users/archive/2013-01/message/0



jitu made changes - 04/Feb/13 05:48 AM
Field Original Value New Value
Due Date 2013-02-07 00:00:00.0
jitu added a comment - 08/Feb/13 08:01 PM

Added an accessor method that provides a list view of the specified type


jitu made changes - 08/Feb/13 08:01 PM
Status Open [ 1 ] Resolved [ 5 ]
Resolution Fixed [ 1 ]