public class JsonUtils
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
stClassName |
protected static java.lang.String |
stVersion |
Constructor and Description |
---|
JsonUtils() |
Modifier and Type | Method and Description |
---|---|
static java.lang.Boolean |
getBooleanByPtr(JSONObject oJson,
java.lang.String pointer)
Gets a Boolean from inside a JSONObject by its pointer
|
static java.lang.Double |
getDoubleByPtr(JSONObject oJson,
java.lang.String pointer)
Gets a Double from inside a JSONObject by its pointer
|
static java.lang.Integer |
getIntegerByPtr(JSONObject oJson,
java.lang.String pointer)
Gets an Integer from inside a JSONObject by its pointer
|
static JSONArray |
getJSONArrayByPtr(JSONObject oJson,
java.lang.String pointer)
Gets a JSONArray from inside a JSONObject by its pointer
|
static JSONObject |
getJSONObjectByPtr(JSONObject oJson,
java.lang.String pointer)
Gets a JSONObject from inside another JSONObject by its pointer
|
static java.lang.String |
getLastError()
Gets the last error that occurred
|
static java.lang.Long |
getLongByPtr(JSONObject oJson,
java.lang.String pointer)
Gets a Long from inside a JSONObject by its pointer
|
static java.lang.String |
getStringByPtr(JSONObject oJson,
java.lang.String pointer)
Gets a String from inside a JSONObject by its pointer
|
static java.lang.Object |
getTargetObject(JSONObject oJson,
java.lang.String pointer)
Gets the target object from inside a JSONObject by its pointer
|
static java.lang.String |
getVersion()
Returns the version of the class.
|
protected static java.lang.String stVersion
protected static java.lang.String stClassName
public static java.lang.Boolean getBooleanByPtr(JSONObject oJson, java.lang.String pointer)
oJson
- The JSONObjectpointer
- The pointer to the target objectpublic static java.lang.Double getDoubleByPtr(JSONObject oJson, java.lang.String pointer)
oJson
- The JSONObjectpointer
- The pointer to the target objectpublic static java.lang.Integer getIntegerByPtr(JSONObject oJson, java.lang.String pointer)
oJson
- The JSONObjectpointer
- The pointer to the target objectpublic static JSONArray getJSONArrayByPtr(JSONObject oJson, java.lang.String pointer)
oJson
- The JSONObjectpointer
- The pointer to the target objectpublic static JSONObject getJSONObjectByPtr(JSONObject oJson, java.lang.String pointer)
oJson
- The JSONObjectpointer
- The pointer to the target objectpublic static java.lang.String getLastError()
public static java.lang.Long getLongByPtr(JSONObject oJson, java.lang.String pointer)
oJson
- The JSONObjectpointer
- The pointer to the target objectpublic static java.lang.Object getTargetObject(JSONObject oJson, java.lang.String pointer)
oJson
- The source JSONObjectpointer
- The pointer (in array form) to the target objectpublic static java.lang.String getStringByPtr(JSONObject oJson, java.lang.String pointer)
oJson
- The JSONObjectpointer
- The pointer to the target objectpublic static java.lang.String getVersion()