Convert JSONL to CBOR
Turn JSONL files into CBOR. The same structure and key order in CBOR, with integers, floats, booleans, null, text, arrays and maps keeping their types and dates as text.
Converted in an isolated sandbox on our serversDeleted after 24 hours
Drop JSONL files on the dialor turn it to pick what to do
JSON Lines packed into binary CBOR.Same structure and key order, with each value keeping its type.
What you get
One CBOR file made from your JSONL file. The structure and the key order stay as they are in the source.
Integers, floats, booleans, null, text, arrays and maps keep their types in CBOR. They are not turned into text.
What changes
Dates become text. A date in your JSONL is a string, and it stays a string in the CBOR file. It is not stored as a CBOR date type.
The output is binary, not readable text. To go the other way, use CBOR to JSONL.
When it fails
The conversion stops with
input_corruptedwhen the file could not be parsed. The JSONL must be readable before CBOR can be written from it.There are no options to set. The conversion takes the file as it is and returns one file.
JSONL and CBOR.What each format is.
The formats
JSON Lines
JSON Lines, one JSON object per line, the format of logs and datasets.
- Extensions
- .jsonl .ndjson
- MIME type
- application
/jsonl - Kind
- Text and data
CBOR
Concise Binary Object Representation, the binary JSON of IoT and web standards.
- Extensions
- .cbor
- MIME type
- application
/cbor - Kind
- Text and data
In your code.The same JSONL to CBOR conversion through the API, for your app or your agent.
$ cv convert report.jsonl report.cbor$ cv convert report.jsonl report.cborQuestions.What people ask about JSONL to CBOR.
Yes. The structure and the key order stay the same as in the JSONL file.
Yes. Integers and floats keep their types, and so do booleans, null, text, arrays and maps.
Dates are kept as text. They are not converted to a CBOR date type.
The file could not be parsed. The conversion stops there and gives no CBOR output.