Convert CBOR to JSONL
Turn CBOR files into JSONL. Each entry of a top-level list becomes one line of compact JSON, and any other value becomes a single line, with values and key order kept.
Converted in an isolated sandbox on our serversDeleted after 24 hours
Drop CBOR files on the dialor turn it to pick what to do
CBOR data as one JSON object per line.Each entry of a top-level list becomes a line of compact JSON. Values and key order stay as they are.
What you get
One JSONL file. If the CBOR file holds a top-level list, each entry of the list becomes one line of compact JSON.
Any other top-level value becomes a single line. Values and key order are kept.
What changes
JSON has no byte strings, so byte strings become base64 text. JSON has no time type, so epoch times become ISO 8601 text.
When it stops
If the file cannot be parsed, the conversion stops with
input_corrupted. This code means the CBOR data is not readable as CBOR.To go the other way, use JSONL to CBOR.
CBOR and JSONL.What each format is.
The formats
CBOR
Concise Binary Object Representation, the binary JSON of IoT and web standards.
- Extensions
- .cbor
- MIME type
- application
/cbor - Kind
- Text and data
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
In your code.The same CBOR to JSONL conversion through the API, for your app or your agent.
$ cv convert report.cbor report.jsonl$ cv convert report.cbor report.jsonlQuestions.What people ask about CBOR to JSONL.
Each entry of a top-level list becomes one line of compact JSON.
It becomes a single line.
Byte strings become base64 text. Epoch times become ISO 8601 text.
Yes. Values and key order are kept.