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.
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.
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.
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
YAML
YAML configuration and data files.
- Extensions
- .yaml .yml
- MIME type
- application
/yaml - 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 YAML to MSGPACK conversion through the API, for your app or your agent.
$ cv convert report.yaml report.msgpack$ cv convert report.yaml report.msgpackQuestions.What people ask about YAML to MSGPACK.
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.