Distinguish a JSON value from a table row
General JSON Lines allows any JSON value on a line, including a string, a number or null. In general-values.jsonl each of the three lines is a JSON value. The converter stops on line 1 because this table profile requires an object.
For a positive example, open rack-cards.jsonl. The records share the names rack and piece. The rack numbers are quoted strings, preserving 08 and 09. The final piece value is an empty string, which is accepted.
Check one record
Apply string-record.schema.json to one parsed object at a time. It requires 1 to 64 member names, each containing at least one non-whitespace character. Every value must be a string. Keep whitespace inside nonblank names when comparing them.
Check for duplicate decoded names in the original text as well. Once an ordinary parser has collapsed two occurrences into a single member, a schema operating on that object can no longer recover the missing occurrence.
Check the sequence and physical lines
All records must have exactly the same names, preserving case and spelling. The member order within one object may differ. The sequence of the records is significant. Reordering two lines changes their positions in the resulting array.
JSON Lines files use UTF-8. Paste decoded text with LF or CRLF between records. This reader rejects a byte order mark, a bare CR and any blank or whitespace-only line. One final terminator is optional, as rack-cards.jsonl demonstrates by ending at its last brace.
Check the bounds of the complete transfer
The converter accepts at most 2,000 records and 100,000 UTF-16 code units of input. Its output has the same size limit. The one-record schema cannot check the line endings, record count, matching names across records or the size of a complete conversion.
An empty array converts to an empty sequence of records. In the reverse direction, zero characters become an empty array. For a nonempty array, the writer serializes each object on one compact line and terminates each line with LF.