public class SocialJsonUtils
extends java.lang.Object
| Constructor and Description |
|---|
SocialJsonUtils() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.Object[] |
jsonArrayToArray(JSONArray node)
Convert a json array to a java list.
|
static java.lang.Object |
jsonDataToObject(JSONArray node,
int field)
Takes any kind of json node and converts it to a java Object.
|
static java.lang.Object |
jsonDataToObject(JSONObject node,
java.lang.String field)
Takes any kind of json node and converts it to a java Object.
|
static java.util.Map<java.lang.String,java.lang.Object> |
jsonObjectToMap(JSONObject node)
Takes a json object (ie, unordered key/value data) and converts it to a java Map.
|
public static java.util.Map<java.lang.String,java.lang.Object> jsonObjectToMap(JSONObject node) throws JSONException
node - the node to transformJSONException - when the object can't be parsedpublic static java.lang.Object jsonDataToObject(JSONObject node, java.lang.String field) throws JSONException
node - the node to transformfield - the field in the JSONObject to convertJSONException - any unexpected json exceptionpublic static java.lang.Object jsonDataToObject(JSONArray node, int field) throws JSONException
node - the node to transformfield - the field in the JSONObject to convertJSONException - any unexpected json exceptionpublic static java.lang.Object[] jsonArrayToArray(JSONArray node) throws JSONException
node - the node to transformJSONException - on failureCopyright © 2010 - 2023 Adobe. All Rights Reserved