Package org.apache.juneau.marshall.json5l
package org.apache.juneau.marshall.json5l
JSON5L (JSON5 Lines) marshalling support.
JSON5L combines the relaxed JSON5 dialect (comments, unquoted/single-quoted keys, trailing commas, relaxed numbers) with JSONL's newline-delimited framing (one document per line).
This package provides Json5lSerializer and
Json5lParser. The serializer emits strict
RFC-8259 JSON per line by default (byte-identical to JsonlSerializer),
with an opt-in for JSON5 sugar. The parser accepts the full JSON5 dialect per line — and,
because JSON5 is a strict superset of JSON, plain JSONL input as well.
Example:
See Also:
-
ClassDescriptionAnnotation for specifying config properties for REST classes and methods using JSON5L.Utility classes and methods for the
@Json5lConfigannotation.AppliesJson5lConfigannotations to aJsonParser.Builder.AppliesJson5lConfigannotations to aJsonSerializer.Builder.Parses JSON5L (JSON5 Lines) input into POJO models.Builder class.Session object that lives for the duration of a single use ofJson5lParser.Builder class.Serializes POJO models to JSON5L (JSON5 Lines).Builder class.Session object that lives for the duration of a single use ofJson5lSerializer.Builder class.Reference implementation of the publicTokenReadersurface for the JSON5L format.