JSON & NDJSON to Table Converter

tools/json-ndjsonFormat Readers

Flatten nested JSON and NDJSON streams into flat SQL tables with JSON Pointers.

Convert nested JSON and NDJSON files into flat typed columns using RFC 6901 JSON Pointers and array expansion. Stream large line-delimited logs from disk without loading everything into memory.

Use in chatRead JSON payloads from an API endpoint, expand /data/items, and project nested metrics into typed columns.

What JSON & NDJSON to Table Converter does

JSON & NDJSON to Table Converter reads nested API payloads, Geo-adjacent bundles, and multi-gigabyte newline-delimited logs without custom jq scripts. It binds records_pointer and column pointers in json.tabular to expand objects and arrays into flat relational rows.

When document_format is set to ndjson, payloads stream incrementally from disk so large exports stay within memory limits. Output tables support DuckDB SQL, Parquet or CSV export, REST APIs, and MCP access.

Input & output example

JSON pointers select nested fields and expand arrays into flat rows.

Nested JSON payload

{"meta":{"count":2},"results":[{"id":1,"metrics":{"temp":22.4}}]}

Flat projected rows

idtemp_c
122.4

How it works

  1. 1

    Inspect JSON structure or NDJSON stream

    Probe a sample payload to find the array records_pointer and nested paths you want flattened into columns.

  2. 2

    Bind json.tabular pointers and types

    Set records_pointer, column pointers, and document_format (json or ndjson) in the recipe reader options.

  3. 3

    Normalize and serve via SQL and API

    Refine types or unnest sub-arrays in DuckDB SQL and publish through Parquet download, REST API, and MCP.

Try with an agent

Pre-loads JSON & NDJSON in chat

Flatten nested JSON API responses

Read JSON payloads from an API endpoint, expand /data/items, and project nested metrics into typed columns.

Stream large NDJSON archives

Decode a multi-gigabyte .jsonl export using json.tabular ndjson streaming and write partitioned Parquet.

Common use cases

  • REST and GraphQL API response bodies
  • Streaming NDJSON logs and event dumps
  • Deeply nested JSON objects needing array expansion

Details

Identifier
json-ndjson
Inputs
.json · .ndjson · .jsonl · API JSON responses
Outputs
Flat typed columns
Dataset delivery
Parquet · CSV · JSON · SQL · REST API · MCP

Frequently asked questions

Does json.tabular stream NDJSON files?

Yes. json.tabular 1.1.0+ supports staged disk streaming when document_format is set to ndjson.

Can json.tabular handle deeply nested fields inside objects?

Yes. Each output column specifies an RFC 6901 JSON Pointer (such as /metadata/publisher/name) relative to each record.

What is the difference between JSON and NDJSON mode?

JSON mode parses a single document tree at records_pointer, while NDJSON mode streams newline-delimited JSON objects line by line from disk.

Related tools