Skip to main content

JSON Parsers

The JsonParser class is used to parse JSON into POJOs.

The class hierarchy for the builder of this parser is:

Context.BuilderBeanContextable.BuilderParser.BuilderReaderParser.BuilderJsonParser.Builder

Refer to the builder javadocs for configurable settings.

The following pre-configured parsers are provided for convenience:

JsonParserDEFAULTDEFAULT_STRICT

The JSON parser supports ALL valid JSON, including:

  • Javascript comments.
  • Single or double quoted values.
  • Quoted (strict) or unquoted (non-strict) attributes.
  • JSON fragments (such as string, numeric, or boolean primitive values).
  • Concatenated strings.