java.lang.Object
de.ralleytn.simple.json.JSONUtil
Contains some utility methods for JSON related stuff.
- Since:
- 2.0.0
- Version:
- 2.0.0
- Author:
- Ralph Niemitz/RalleYTN(ralph.niemitz@gmx.de)
-
Method Summary
Modifier and TypeMethodDescriptionstatic final String
Escape quotes, \, /, \r, \n, \b, \f, \t and other control characters (U+0000 through U+001F).static final boolean
isJSONType
(Object value) Checks if a value is a JSON compatible type.
-
Method Details
-
escape
Escape quotes, \, /, \r, \n, \b, \f, \t and other control characters (U+0000 through U+001F). -
isJSONType
Checks if a value is a JSON compatible type.- Parameters:
value
- the value that should be checked- Returns:
true
if the given value is a JSON compatible type, elsefalse
- Since:
- 2.0.0
-