Class JsonUtil

java.lang.Object
com.targomo.client.api.util.JsonUtil

public class JsonUtil extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    getBoolean(org.json.JSONObject jsonConfig, String key)
     
    static Double
    getDouble(org.json.JSONObject object, String key)
     
    static Integer
    getInt(org.json.JSONArray array, int index)
     
    static Integer
    getInt(org.json.JSONObject jsonConfig, String key)
     
    static org.json.JSONArray
    getJsonArray(org.json.JSONObject object, String key)
     
    static org.json.JSONObject
    getJSONObject(org.json.JSONArray array, int index)
     
    static org.json.JSONObject
    getJSONObject(org.json.JSONObject jsonConfig, String key)
     
    static Set<String>
    getKeys(org.json.JSONObject results)
     
    static long
    getLong(org.json.JSONObject object, String key)
     
    static List<Integer>
    getSortedIntKeySet(org.json.JSONObject object)
     
    static String
    getString(org.json.JSONObject jsonConfig, String key)
     
    static org.json.JSONArray
     
    static org.json.JSONObject
    Parse configuration string
    static void
    put(org.json.JSONArray jsonArray, org.json.JSONArray innerBoundary)
     
    static void
    put(org.json.JSONArray array, org.json.JSONObject object)
     
    static org.json.JSONObject
    put(org.json.JSONObject object, String string, double value)
     
    static org.json.JSONObject
    put(org.json.JSONObject object, String string, int value)
     
    static org.json.JSONObject
    put(org.json.JSONObject object, String string, String value)
    Put String inside JSONObject
    static org.json.JSONObject
    put(org.json.JSONObject object, String string, org.json.JSONArray jsonArray)
    Put array to JSONObject
    static org.json.JSONObject
    put(org.json.JSONObject object, String string, org.json.JSONObject jsonObject)
    Put object inside another JSONObject
    static String
    toString(org.json.JSONObject config, int intendation)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait