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.

  1. 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.

  2. 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.

  3. When it fails

    The conversion stops with input_corrupted when 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

From · JSONL

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
To · CBOR

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.

terminal
$ cv convert report.jsonl report.cbor
$ cv convert report.jsonl report.cbor

Questions.What people ask about JSONL to CBOR.

01OF 04

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.

More conversions.Other ways in and out of JSONL and CBOR.