Class JSONParser

java.lang.Object
dev.iahmadgad.json.JSONParser

public class JSONParser extends Object
JSONParser Class.
Since:
0.3
  • Constructor Details

    • JSONParser

      protected JSONParser(String text)
      Constructor that parses the node from a text.
      Parameters:
      text -
      See Also:
      • parse()
    • JSONParser

      protected JSONParser(File file)
      Constructor that parses the node from a file.
      Parameters:
      file -
      See Also:
      • readFile(File)
      • parse()
  • Method Details

    • getHashMap

      protected HashMap<String,Object> getHashMap()
      Returns the main JSONObject node.
      Returns:
      the main JSONObject node
    • getArrayList

      protected ArrayList<Object> getArrayList()
      Returns the main JSONArray node.
      Returns:
      the main JSONArray node.