public class FlexJsonUtils
extends java.lang.Object
Constructor and Description |
---|
FlexJsonUtils() |
Modifier and Type | Method and Description |
---|---|
static JSONObject |
getJSON(java.io.File pFile)
Gets JSONObject from a given file.
|
static JSONObject |
getJSON(FlexRESTClientResponse pResponse) |
static JSONObject |
getJSON(java.lang.String pJsonString)
Gets JSONObject from a given string.
|
static <Type> Type |
getJsonKey(JSONObject json,
java.lang.String pKey)
Gets JSON key from JSONObject without checking if one exists.
|
static <Type> Type |
getSafeJsonKey(JSONObject json,
java.lang.String pKey)
Safely gets a JSON key from a JSONObject if one exists.
|
public static JSONObject getJSON(FlexRESTClientResponse pResponse) throws FlexCheckedException
FlexCheckedException
public static JSONObject getJSON(java.io.File pFile) throws FlexCheckedException
pFile
- - JSON file that will be converted to JSONObject.FlexCheckedException
public static JSONObject getJSON(java.lang.String pJsonString) throws FlexCheckedException
pFile
- - JSON formatted string that will be converted to JSONObject.FlexCheckedException
public static <Type> Type getSafeJsonKey(JSONObject json, java.lang.String pKey) throws FlexCheckedException
Type
- json
- pKey
- FlexCheckedException
public static <Type> Type getJsonKey(JSONObject json, java.lang.String pKey)
Type
- json
- pKey
-