Convert YAML to MSGPACK

Turn YAML 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 YAML files on the dialor turn it to pick what to do

YAML data in a compact binary form.The same structure and key order, written as MessagePack.

  1. What you get

    One MessagePack file with the same structure and key order as the YAML. Integers, floats, booleans, null, text, lists and maps keep their types. Dates are written as text.

    If the YAML holds several documents, they become a list in the one file.

  2. What changes

    Aliases are expanded, so each place that used an alias holds its own copy of the value. Comments are dropped.

    Values such as yes, on, 0755 and dates stay text. They are not turned into booleans, numbers or date values.

    A merge key (<<) is kept as an ordinary key. It is not merged into the map around it.

  3. When it fails

    A file that cannot be parsed as YAML stops with input_corrupted. The conversion has no options to set.

    To go the other way, use MSGPACK to YAML.

YAML and MSGPACK.What each format is.

The formats

From · YAML

YAML

YAML configuration and data files.

Extensions
.yaml .yml
MIME type
application/yaml
Kind
Text and data
To · 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

In your code.The same YAML to MSGPACK conversion through the API, for your app or your agent.

terminal
$ cv convert report.yaml report.msgpack
$ cv convert report.yaml report.msgpack

Questions.What people ask about YAML to MSGPACK.

01OF 04

Yes. The structure and key order stay the same in the MessagePack file.

The documents become a list in the one MessagePack file.

No. Values such as yes, on, 0755 and dates stay text.

No. Comments are dropped.

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