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

Add accessor method to consume same type of objects in JsonArray

    Details

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

      Description

      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

        Activity

        Hide
        jitu added a comment -

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

        Show
        jitu added a comment - Added an accessor method that provides a list view of the specified type

          People

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

            Dates

            • Due:
              Created:
              Updated:
              Resolved: