[JSON_PROCESSING_SPEC-18] Add convenient accessor methods for string, int values on JsonArray and JsonObject Created: 24/Oct/12  Updated: 03/Dec/12  Resolved: 25/Oct/12

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

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


Instead of calling JsonArray.getValue(0, JsonString.class).getValue(), provide
a convenient method JsonArray.getStringValue(0). Similarly they should be
added for JsonObject as well.

Comment by jitu [ 25/Oct/12 ]

Adding the following methods:
+ public String getStringValue(int index);
+ public int getIntValue(int index);

+ public String getStringValue(String name);
+ public int getIntValue(String name);

Generated at Wed Feb 22 18:17:36 UTC 2017 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.