Class JsonParserUsingCharacterSource

java.lang.Object
org.apache.groovy.json.internal.BaseJsonParser
org.apache.groovy.json.internal.JsonParserUsingCharacterSource
All Implemented Interfaces:
JsonParser

public class JsonParserUsingCharacterSource
extends BaseJsonParser
Converts an input JSON String into Java objects works with String or char array as input. Produces an Object which can be any of the basic JSON types mapped to Java.
  • Field Details

    • NULL

      protected static final char[] NULL
    • TRUE

      protected static final char[] TRUE
    • FALSE

      protected static char[] FALSE
  • Constructor Details

    • JsonParserUsingCharacterSource

      public JsonParserUsingCharacterSource()
  • Method Details

    • exceptionDetails

      protected java.lang.String exceptionDetails​(java.lang.String message)
    • decodeJsonObject

      protected final java.lang.Object decodeJsonObject()
    • complain

      protected final void complain​(java.lang.String complaint)
    • decodeNull

      protected final java.lang.Object decodeNull()
    • decodeTrue

      protected final boolean decodeTrue()
    • decodeFalse

      protected final boolean decodeFalse()
    • decodeJsonArray

      protected final java.util.List decodeJsonArray()
    • parse

      public java.lang.Object parse​(java.io.Reader reader)
      Specified by:
      parse in interface JsonParser
      Overrides:
      parse in class BaseJsonParser
    • parse

      public java.lang.Object parse​(char[] chars)