src/main/java/convex/java/JSON.java
/**
     * Converts a string to a JSON Value
     *
     * @param jsonString A string containing valid JSON
     * @param <T>        A type parameter for the type of object returned.
     * @return T A java object representing the JSON provided
     * @throws Error on JSON parsing error
     */
Converts a string to a JSON Value
@param jsonString A string containing valid JSON
@param         A type parameter for the type of object returned.
@return T A java object representing the JSON provided
@throws Error on JSON parsing error
Converts a string to a JSON Value @param jsonString A string containing valid JSON @param A type parameter for the type of object returned . @return T A java object representing the JSON provided @throws Error on JSON parsing error
@SuppressWarnings({"unchecked"})
    public static <T> T parse(String jsonString) {
        JSONParser parser = new JSONParser();
        try {
            Object result = parser.parse(jsonString);
            return (T) result;
        } catch (ParseException e) {
        	throw new Error("Error in JSON parsing: " + e.getMessage(), e);
        }
    }
@ SuppressWarnings ( { "unchecked" } ) public static < T > T parse ( String jsonString ) { JSONParser parser = new JSONParser ( ) ; try { Object result = parser . parse ( jsonString ) ; return ( T ) result ; } catch ( ParseException e ) { throw new Error ( "Error in JSON parsing: " + e . getMessage ( ) , e ) ; } }
Converts a string to a JSON Value
 @param jsonString A string containing valid JSON
 @param <T>        A type parameter for the type of object returned.
Converts a string to a JSON Value @param jsonString A string containing valid JSON @param <T > A type parameter for the type of object returned .