Package 

Enum JsonReader.Token

  • All Implemented Interfaces:
    java.io.Serializable , java.lang.Comparable

    
    public enum JsonReader.Token
    
                        

    A structure, name, or value type in a JSON-encoded string.

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      BEGIN_ARRAY

      The opening of a JSON array.and read using beginArray.

      END_ARRAY

      The closing of a JSON array.and read using endArray.

      BEGIN_OBJECT

      The opening of a JSON object.and read using beginObject.

      END_OBJECT

      The closing of a JSON object.and read using endObject.

      NAME

      A JSON property name. Within objects, tokens alternate between names andtheir values.

      STRING

      A JSON string.

      NUMBER

      A JSON number represented in this API by a Java {@code double}, {@code * long}, or {@code int}.

      BOOLEAN

      A JSON {@code true} or {@code false}.

      NULL

      A JSON {@code null}.

      END_DOCUMENT

      The end of the JSON stream. This sentinel value is returned by to signal that the JSON-encoded value has no moretokens.