Convert CBOR to PROPERTIES
Turn CBOR 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 CBOR files on the dialor turn it to pick what to do
CBOR as a Java properties file.Every value becomes one key=value line, named by its path of keys.
What you get
One PROPERTIES file with one line for each value in the CBOR data. Each line is written as key=value with Java escapes.
The key is the path of keys that leads to the value, joined with dots. A list position goes in brackets, so the first item of a list named hosts inside server is written as server.hosts[0].
Lists at the top
When the top level of the CBOR data is a list, there is no key to start from. The values are written under items instead, such as items[0].name.
What changes on the way
PROPERTIES holds only text, so some values are rewritten. Byte strings become base64 text. Epoch times become ISO 8601 text.
An empty object or an empty list has no values to give a line of its own. It is written as JSON text.
To go the other way, use PROPERTIES to CBOR.
CBOR and PROPERTIES.What each format is.
The formats
CBOR
Concise Binary Object Representation, the binary JSON of IoT and web standards.
- Extensions
- .cbor
- MIME type
- application
/cbor - Kind
- Text and data
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 CBOR to PROPERTIES conversion through the API, for your app or your agent.
$ cv convert report.cbor report.properties$ cv convert report.cbor report.propertiesQuestions.What people ask about CBOR to PROPERTIES.
Each key on the way down is joined with a dot. A list position is added in brackets, as in server.hosts[0].
Its values are written under items. The name field of the first entry is items[0].name.
Byte strings become base64 text. Epoch times become ISO 8601 text.
No. This conversion has no options, and the result is one file.