Class JsonParser


  • public final class JsonParser
    extends java.lang.Object
    A naive implementation based on recursive descent parsing.
    • Constructor Summary

      Constructors 
      Constructor Description
      JsonParser()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.Object parse​(java.lang.String contents)
      Parses string and returns read object if any.
      static java.lang.Object read​(java.io.Reader reader)  
      • Methods inherited from class java.lang.Object

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

      • JsonParser

        public JsonParser()
    • Method Detail

      • parse

        public static java.lang.Object parse​(java.lang.String contents)
                                      throws java.io.IOException
        Parses string and returns read object if any.
        Throws:
        java.io.IOException
      • read

        public static java.lang.Object read​(java.io.Reader reader)
                                     throws java.io.IOException
        Throws:
        java.io.IOException