Package org.everit.json.schema.loader
Class OrgJsonUtil
- java.lang.Object
-
- org.everit.json.schema.loader.OrgJsonUtil
-
public class OrgJsonUtil extends Object
Utility class simplifying working with org.json.JSONObject and JSONArray in a way that it also works on android.
-
-
Method Summary
Modifier and Type Method Description static String[]
getNames(org.json.JSONObject obj)
static List<Object>
toList(org.json.JSONArray arr)
Used as a replacement ofJSONArray#toList()
(which doesn't exist in the android version of org.json).static Map<String,Object>
toMap(org.json.JSONObject obj)
Used as a replacement ofJSONObject#toMap()
(which doesn't exist in the android version of org.json).
-
-
-
Method Detail
-
toMap
public static Map<String,Object> toMap(org.json.JSONObject obj)
Used as a replacement ofJSONObject#toMap()
(which doesn't exist in the android version of org.json).
-
toList
public static List<Object> toList(org.json.JSONArray arr)
Used as a replacement ofJSONArray#toList()
(which doesn't exist in the android version of org.json).
-
getNames
public static String[] getNames(org.json.JSONObject obj)
-
-