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.

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

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

  3. 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_corrupted when the file could not be parsed. It stops with unsupported_elements when 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

From · MSGPACK

MessagePack

Binary JSON: the same values as JSON in a compact byte encoding.

Extensions
.msgpack .mpk
MIME type
application/msgpack
Kind
Text and data
To · TOML

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.

terminal
$ cv convert report.msgpack report.toml
$ cv convert report.msgpack report.toml

Questions.What people ask about MSGPACK to TOML.

01OF 04

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.

More conversions.Other ways in and out of MSGPACK and TOML.