-
public class JSONHelperHelper json methods that don't belong in JSON
-
-
Method Summary
Modifier and Type Method Description static ObjectjsonObjectToObject(Object object)Transforms org.json.JSONObject and org.json.JSONArray to java.util.Map and java.lang.Iterable If transformation is not needed, returns the original object. static Map<String, Object>jsonObjectToMap(JSONObject object)static List<Object>jsonArrayToArray(JSONArray array)-
-
Method Detail
-
jsonObjectToObject
static Object jsonObjectToObject(Object object)
Transforms org.json.JSONObject and org.json.JSONArray to java.util.Map and java.lang.Iterable If transformation is not needed, returns the original object. Useful for JSON deserialization
- Parameters:
object- Object to transform
-
jsonObjectToMap
static Map<String, Object> jsonObjectToMap(JSONObject object)
-
jsonArrayToArray
static List<Object> jsonArrayToArray(JSONArray array)
-
-
-
-