[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


 Description   

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.



 Comments   
Comment by jitu [ 25/Oct/12 ]

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

JsonObject.java
+ public String getStringValue(String name);
+ public int getIntValue(String name);

Generated at Fri May 29 09:45:41 UTC 2015 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.