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 Details

    • toMap

      public static Map<String,Object> toMap(org.json.JSONObject obj)
      Used as a replacement of JSONObject#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 of JSONArray#toList() (which doesn't exist in the android version of org.json).
    • getNames

      public static String[] getNames(org.json.JSONObject obj)