Convert JSON to PROPERTIES

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

JSON becomes key=value lines.Each value gets its own line in a Java properties file, named by its path.

  1. What you get

    One PROPERTIES file. Each value becomes one key=value line with Java escapes. The key is the path of keys to that value, joined with dots.

    Positions in a list go in brackets, such as server.hosts[0]. A top-level list is written under items, such as items[0].name.

  2. Empty objects and lists

    An empty object or list has no values to write as lines. It is written as JSON text instead.

  3. When it stops

    The conversion stops with input_corrupted when the file could not be parsed. Fix the JSON first, then convert it again.

    It stops with unsupported_elements when the file holds something the target cannot carry, or when some inputs cannot become the format the join takes.

JSON and PROPERTIES.What each format is.

The formats

From · JSON

JSON

JSON, the data format of every API.

Extensions
.json
MIME type
application/json
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 JSON to PROPERTIES conversion through the API, for your app or your agent.

terminal
$ cv convert report.json report.properties
$ cv convert report.json report.properties

Questions.What people ask about JSON to PROPERTIES.

01OF 04

Keys are joined with dots, so a value inside server and hosts gets a path like server.hosts. List positions are added in brackets.

It is written under items. The first entry's name field becomes items[0].name.

It is written as JSON text.

Yes. PROPERTIES to JSON converts a properties file into JSON.

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