public class TuneJsonUtils extends Object
Constructor and Description |
---|
TuneJsonUtils() |
Modifier and Type | Method and Description |
---|---|
static JSONObject |
getJSONObject(JSONObject json,
String key) |
static String |
getPrettyJson(JSONObject jsonObject) |
static String |
getString(JSONObject json,
String key) |
static ArrayList<String> |
JSONArrayToStringArrayList(JSONArray jsonArray) |
static JSONArray |
listToJson(List list) |
static String |
ppAnalyticsEvent(JSONObject o,
int level) |
static void |
put(JSONObject json,
String key,
Object value) |
public static ArrayList<String> JSONArrayToStringArrayList(JSONArray jsonArray)
public static String getString(JSONObject json, String key)
public static JSONObject getJSONObject(JSONObject json, String key)
public static void put(JSONObject json, String key, Object value)
public static String getPrettyJson(JSONObject jsonObject)
public static String ppAnalyticsEvent(JSONObject o, int level) throws JSONException
JSONException