Class JSONParser


  • public class JSONParser
    extends Object
    Simple JSON parsing utility.
    • Method Detail

      • parseJSON

        public static Object parseJSON​(String s)
                                throws org.json.JSONException
        Takes a JSON string and returns either a JSONObject or JSONArray, depending on whether the string represents an object or an array.
        Parameters:
        s - Raw JSON string to be parsed
        Returns:
        JSONObject or JSONArray
        Throws:
        org.json.JSONException - JSON parsing error