Issue Details (XML | Word | Printable)

Key: JSON_PROCESSING_SPEC-9
Type: New Feature New Feature
Status: Open Open
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

Adding methods to JsonParser to get objects

Created: 14/Jun/12 10:41 PM   Updated: 07/Jan/13 07:42 PM
Component/s: None
Affects Version/s: None
Fix Version/s: None

Time Tracking:
Not Specified

Tags:
Participants: jitu


 Description  « Hide

Something like the following, that gives the objects from the parser

/**

  • getJsonValue(JsonObject.class) is valid in START_OBJECT state,
  • moves cursor to END_OBJECT
    *
  • getJsonValue(JsonArray.class) is valid in START_ARRAY state
  • moves cursor to END_ARRAY
    *
  • getJsonValue(JsonString.class) is valid in VALUE_STRING state
    *
  • getJsonValue(JsonNumber.class) is valid in VALUE_NUMBER state
    */
    public <T extends JsonValue> T getJsonValue(Class<T> clazz) { return null; }


jitu made changes - 29/Oct/12 09:45 PM
Field Original Value New Value
Fix Version/s 1.0-pr [ 16133 ]
jitu made changes - 07/Jan/13 07:42 PM
Fix Version/s 1.0-pr [ 16133 ]