Convert MSGPACK to TOML
Turn MSGPACK files into TOML. The same keys and values as TOML, with plain values written before tables, and a top-level list is written under the key items, as [[items]] tables when its entries are objects.
Converted in an isolated sandbox on our serversDeleted after 24 hours
Drop MSGPACK files on the dialor turn it to pick what to do
MessagePack data as a TOML file.Keys and values carry over, with plain values written before tables.
What you get
One TOML file with the same keys and values as the MessagePack input. Plain values are written first, and tables follow them, as TOML expects.
Binary values become base64 text. Timestamps become ISO 8601 text in UTC.
Top-level lists
TOML needs a key at the top, so a top-level list is written under the key items. When its entries are objects, each one becomes an [[items]] table.
What fails or is dropped
TOML has no null. A null in an object is dropped, and the conversion gives a warning. A null inside a list fails, because a list cannot hold it.
An integer beyond the signed 64-bit range also fails, since TOML cannot hold it.
The conversion stops with
input_corruptedwhen the file could not be parsed. It stops withunsupported_elementswhen the file holds something TOML cannot carry, or when some inputs cannot become the format the join takes.
MSGPACK and TOML.What each format is.
The formats
MessagePack
Binary JSON: the same values as JSON in a compact byte encoding.
- Extensions
- .msgpack .mpk
- MIME type
- application
/msgpack - Kind
- Text and data
TOML
TOML configuration files, the format of Cargo and pyproject.
- Extensions
- .toml
- MIME type
- application
/toml - Kind
- Text and data
In your code.The same MSGPACK to TOML conversion through the API, for your app or your agent.
$ cv convert report.msgpack report.toml$ cv convert report.msgpack report.tomlQuestions.What people ask about MSGPACK to TOML.
A null in an object is dropped, and you get a warning. A null inside a list makes the conversion fail.
The list is written under the key items. If its entries are objects, they become [[items]] tables.
Binary values become base64 text. Timestamps become ISO 8601 text in UTC.
Yes. TOML to MSGPACK converts the other way.