Package com.github.openjson
Class JSON
java.lang.Object
com.github.openjson.JSON
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static doublecheckDouble(double d) Returns the input if it is a JSON-permissible value; throws otherwise.(package private) static Boolean(package private) static Double(package private) static Integer(package private) static Long(package private) static Stringstatic JSONExceptiontypeMismatch(Object indexOrName, Object actual, String requiredType) static JSONExceptiontypeMismatch(Object actual, String requiredType)
-
Constructor Details
-
JSON
JSON()
-
-
Method Details
-
checkDouble
Returns the input if it is a JSON-permissible value; throws otherwise.- Throws:
JSONException
-
toBoolean
-
toDouble
-
toInteger
-
toLong
-
toString
-
typeMismatch
public static JSONException typeMismatch(Object indexOrName, Object actual, String requiredType) throws JSONException - Throws:
JSONException
-
typeMismatch
- Throws:
JSONException
-