Package org.apache.juneau.marshall.jsonl
package org.apache.juneau.marshall.jsonl
JSONL (JSON Lines) marshalling support.
JSONL is a text format where each line is a valid JSON value, separated by newline characters. It is the standard format for LLM fine-tuning datasets, streaming AI inference, log aggregation, and bulk data pipelines.
This package provides JsonlSerializer and
JsonlParser which extend the JSON serializer/parser to produce
and consume newline-delimited JSON.
Example:
See Also:
-
ClassDescriptionAnnotation for specifying config properties for REST classes and methods using JSONL.Utility classes and methods for the
@JsonlConfigannotation.AppliesJsonlConfigannotations to aJsonParser.Builder.AppliesJsonlConfigannotations to aJsonSerializer.Builder.Parses JSONL (JSON Lines) input into POJO models.Session object that lives for the duration of a single use ofJsonlParser.Builder class.Serializes POJO models to JSONL (JSON Lines).Session object that lives for the duration of a single use ofJsonlSerializer.Builder class.Reference implementation of the publicTokenReadersurface for the JSONL / NDJSON format.Reference implementation of the publicTokenWritersurface for the JSONL / NDJSON format.