Package com.clover.sdk.v3
Class JsonHelper
- java.lang.Object
-
- com.clover.sdk.v3.JsonHelper
-
public final class JsonHelper extends Object
For Clover internal use only.There are two copies of this file, one in clover-android-sdk and one in schema-tool, please keep them in sync.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static JSONObject
deepCopy(JSONObject jsonObject)
static Map<String,Object>
getMap(JSONObject object, String key)
static boolean
isEmptyObject(JSONObject object)
static Object
toJSON(Object object)
static List
toList(JSONArray array)
static Map
toMap(JSONObject object)
-
-
-
Method Detail
-
isEmptyObject
public static boolean isEmptyObject(JSONObject object)
-
getMap
public static Map<String,Object> getMap(JSONObject object, String key)
-
toMap
public static Map toMap(JSONObject object)
-
deepCopy
public static JSONObject deepCopy(JSONObject jsonObject)
-
-