Skip to main content

[json-processing-spec issues] [JIRA] Created: (JSON_PROCESSING_SPEC-9) Adding methods to JsonParser to get objects

  • From: "jitu (JIRA)" < >
  • To:
  • Subject: [json-processing-spec issues] [JIRA] Created: (JSON_PROCESSING_SPEC-9) Adding methods to JsonParser to get objects
  • Date: Thu, 14 Jun 2012 22:42:55 +0000 (GMT+00:00)
  • Auto-submitted: auto-generated

Adding methods to JsonParser to get objects
-------------------------------------------

                 Key: JSON_PROCESSING_SPEC-9
                 URL: http://java.net/jira/browse/JSON_PROCESSING_SPEC-9
             Project: json-processing-spec
          Issue Type: New Feature
            Reporter: jitu


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

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://java.net/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


[json-processing-spec issues] [JIRA] Created: (JSON_PROCESSING_SPEC-9) Adding methods to JsonParser to get objects

jitu (JIRA) 06/14/2012
 
 
Close
loading
Please Confirm
Close