json-processing-spec
  1. json-processing-spec
  2. JSON_PROCESSING_SPEC-18

Add convenient accessor methods for string, int values on JsonArray and JsonObject

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.0-pr
    • Fix Version/s: 1.0-pr
    • Labels:
      None

      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.

        Activity

        jitu created issue -
        Hide
        jitu added a comment -

        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);

        Show
        jitu added a comment - 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);
        jitu made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Assignee jitu [ jitu ]
        Resolution Fixed [ 1 ]
        jitu made changes -
        Affects Version/s 1.0-pr [ 16133 ]
        jitu made changes -
        Fix Version/s 1.0-pr [ 16133 ]

          People

          • Assignee:
            jitu
            Reporter:
            jitu
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: