Class JSONParser


  • public class JSONParser
    extends java.lang.Object
    JSON parser class for parsing a JSON input string.
    • Constructor Summary

      Constructors 
      Constructor Description
      JSONParser​(java.lang.String input)
      Constructor taking the JSON input string.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      JSONValue parse()
      Parse the JSON string passed in the constructor and return the parsed JSON value object.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JSONParser

        public JSONParser​(java.lang.String input)
        Constructor taking the JSON input string.
        Parameters:
        input - JSON input string.
    • Method Detail

      • parse

        public JSONValue parse()
                        throws ParserException
        Parse the JSON string passed in the constructor and return the parsed JSON value object.
        Returns:
        Parsed JSON value object.
        Throws:
        ParserException - If there is an error while parsing the input string.