Class RootParser.EmbeddedObjectParser

Enclosing class:

public static class RootParser.EmbeddedObjectParser extends RootParser
Parser for data embedded within a message structure which is encoded as a single JSON object. Example:

 { status: "ok", results: { ... } }

The parser counts over the single object. The message parser will parse any content after the closing bracket.

  • Constructor Details

  • Method Details

    • parseRoot

      public boolean parseRoot(TokenIterator tokenizer)
      Description copied from class: RootParser
      Parse one data object. This is the "root" object which may contain nested objects. Overridden to handle different end-of-data indicators for different contexts.
      Specified by:
      parseRoot in class RootParser
      true if an object was found, false if the end of data was reached.