Class JsonParserBase

java.lang.Object
io.helidon.json.JsonParserBase
All Implemented Interfaces:
JsonParser

public abstract class JsonParserBase extends Object implements JsonParser
Base implementation of JsonParser.
  • Constructor Details

    • JsonParserBase

      protected JsonParserBase()
      Protected default constructor for subclasses.
  • Method Details

    • readJsonValue

      public JsonValue readJsonValue()
      Description copied from interface: JsonParser
      Reads a complete JSON value from the current position.

      This method parses and returns the next complete JSON value (object, array, string, number, boolean, or null) from the current parser position.

      Specified by:
      readJsonValue in interface JsonParser
      Returns:
      the parsed JsonValue
      See Also:
    • readJsonObject

      public JsonObject readJsonObject()
      Description copied from interface: JsonParser
      Reads a JSON object from the current position.

      This method expects the next token to be an object start ('{') and parses the complete object including all nested values.

      Specified by:
      readJsonObject in interface JsonParser
      Returns:
      the parsed JsonObject
      See Also:
    • readJsonArray

      public JsonArray readJsonArray()
      Description copied from interface: JsonParser
      Reads a JSON array from the current position.

      This method expects the next token to be an array start ('[') and parses the complete array including all nested values.

      Specified by:
      readJsonArray in interface JsonParser
      Returns:
      the parsed JsonArray
      See Also: