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:

// Serialize a list of beans to JSONL String jsonl = Jsonl.of(myList); // Parse JSONL back to a list List<MyBean> list = Jsonl.to(jsonl, List.class, MyBean.class);

See Also: