Package com.github.openjson
Class JSON
java.lang.Object
com.github.openjson.JSON
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static double
checkDouble
(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 String
static JSONException
typeMismatch
(Object indexOrName, Object actual, String requiredType) static JSONException
typeMismatch
(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
-