Convert MSGPACK to PROPERTIES

Turn MSGPACK files into PROPERTIES. Each value becomes one key=value line with Java escapes, under its path of keys joined with dots and list positions in brackets, such as server.hosts[0], and a top-level list is written under items, such as items[0].name.

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 as plain key=value lines.Every value gets its own line in a Java properties file, named by its path.

  1. What you get

    One PROPERTIES file. Each value in the MSGPACK data becomes one key=value line, with Java escapes applied to the text.

    The key is the path of keys to the value, joined with dots. List positions go in brackets, so a value can be named server.hosts[0].

  2. Lists and empty values

    A top-level list has no key to hang its values on, so it is written under items. The first entry's name field becomes items[0].name.

    An empty object or an empty list is written as JSON text on its line.

  3. Types with no direct match

    Properties files hold only text, so some values change form. Binary values become base64 text. Timestamps become ISO 8601 text in UTC.

    To go the other way, use PROPERTIES to MSGPACK. More MessagePack options are listed under every MSGPACK conversion.

MSGPACK and PROPERTIES.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 · PROPERTIES

Java Properties

Key and value pairs in the Java properties format.

Extensions
.properties
MIME type
text/x-java-properties
Kind
Text and data

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

terminal
$ cv convert report.msgpack report.properties
$ cv convert report.msgpack report.properties

Questions.What people ask about MSGPACK to PROPERTIES.

01OF 04

Each key is the path to the value, joined with dots. List positions go in brackets, such as server.hosts[0].

It is written under items. A name field in the first entry becomes items[0].name.

Binary values become base64 text. Timestamps become ISO 8601 text in UTC.

They are written as JSON text on their own line.

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