liveBook · Manning

JSONL

JSON Lines (JSONL) is a line-oriented text format in which each line contains one complete, independent JSON value.

How 3 Manning books explain it

Data Storytelling with Altair and AI

JSONL is a line-oriented text format in which each line contains a separate JSON value, commonly an object.

How it is used
Prepares prompt–completion samples for uploading and fine-tuning a chat model.
How deep it goes
Shows the messages schema and a pandas-based CSV conversion script, without detailing JSONL syntax beyond the training structure.
Examples
Uses household chores, data-commentary prompts, and CSV rows converted into messages records.
What you can do after
Apply it via Python and the OpenAI API to prepare and upload a fine-tuning dataset.

Read how Data Storytelling with Altair and AI explains JSONL →

Logs and Telemetry

JSON Lines is a serialization format that represents each JSON value as a separate line.

How it is used
Formats Fluent Bit console output so each log event appears as a separate JSON line.
How deep it goes
Explains output configuration, record separation, tag matching, and timestamp formatting, but not JSON parsing or downstream consumption.
Examples
Uses dummy inputs with two stdout outputs and an HTTP input configuration that prints records to the console.
What you can do after
Operate/configure it by setting Fluent Bit stdout format=json_lines and optional ISO 8601 received-date fields.

Read how Logs and Telemetry explains JSONL →

DuckDB in Action

JSON Lines is a text format that stores one complete JSON value, typically an object, per line.

How it is used
Uses line-oriented JSON files as an immediately queryable source for exploratory analytics.
How deep it goes
Explains file discovery, schema inference, array unnesting, recursive expansion, and whole-STRUCT casting.
Examples
Demonstrates Premier League shot files, wildcard reads, home-and-away arrays, inferred schemas, and expected-goals aggregation.
What you can do after
Apply it via DuckDB SQL to inspect, flatten, type-correct, and aggregate multiple JSONL files.

Read how DuckDB in Action explains JSONL →

Related concepts

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.