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; }
Something like the following, that gives the objects from the parser
/**
*
*
*
*/
public T getJsonValue(Class clazz) { return null; }