Class Json5Parser

All Implemented Interfaces:
AnnotationProvider, JsonMetaProvider

public class Json5Parser extends JsonParser
Parses any valid JSON text into a POJO model.
Media types
Handles Content-Type types: application/json5, text/json5
Description
Identical to JsonParser but with the media type application/json5.
Notes:
  • This class is thread safe and reusable.
See Also:
  • Field Details

    • DEFAULT

      public static final Json5Parser DEFAULT
      Default parser, Accept=application/json5.
  • Constructor Details

  • Method Details

    • create

      public static JsonParser.Builder create()
      Creates a new builder for this object.
      Returns:
      A new builder.
    • copy

      Description copied from class: Context
      Creates a builder from this context object.

      Builders are used to define new contexts (e.g. serializers, parsers) based on existing configurations.

      Overrides:
      copy in class JsonParser
      Returns:
      A new Builder object.