Start

Input and Output Model

ChronusQL reads JSON objects. The tests cover JSON Lines and JSON arrays.

Guide

ChronusQL reads JSON objects. The tests cover JSON Lines and JSON arrays.

JSON Lines input:

jsonl
{"value":1}
{"value":2}

JSON array input:

json
[
  {"value":1},
  {"value":2}
]

Both forms produce two events.

Output is JSON Lines. Projection preserves nested JSON structure unless an alias flattens or redirects the output path.

sql
SELECT field1.field2.field3 INTO output FROM input

Tested input:

json
{"field1":{"field2":{"field3":42}}}

Tested output:

json
{"field1":{"field2":{"field3":42}}}

Missing fields project as `null`:

sql
SELECT value, missing INTO output FROM input

Tested input:

json
{"value":9}

Tested output behavior:

json
{"value":9,"missing":null}

If an intermediate nested object is missing, null, a string, or a number, ChronusQL returns `null` for the requested nested field rather than throwing.