Convert JSONL to MSGPACK
Turn JSONL files into MessagePack. The same structure and key order in MessagePack, with integers, floats, booleans, null, text, lists 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 as compact MessagePack.Each line becomes a value in one MessagePack file, with its types and key order kept.
What you get
One MessagePack file with the same structure and the same key order as the JSON Lines input. MessagePack is binary JSON: the same values as JSON in a compact byte encoding.
Integers, floats, booleans, null, text, lists and maps keep their types. A number stays a number, and a map stays a map.
What changes
Dates become text. JSON Lines has no date type, so a date is written as a string and stays one in the MessagePack file.
When it fails
If the file cannot be parsed, the conversion stops with
input_corrupted. This happens when the input is not valid JSON Lines.To go the other way, use MSGPACK to JSONL.
JSONL and MSGPACK.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
MessagePack
Binary JSON: the same values as JSON in a compact byte encoding.
- Extensions
- .msgpack .mpk
- MIME type
- application
/msgpack - Kind
- Text and data
In your code.The same JSONL to MSGPACK conversion through the API, for your app or your agent.
$ cv convert report.jsonl report.msgpack$ cv convert report.jsonl report.msgpackQuestions.What people ask about JSONL to MSGPACK.
Yes. The structure and key order stay the same in the MessagePack file.
Yes. Integers, floats, booleans and null keep their types, as do text, lists and maps.
Dates are kept as text.
One file.