Convert PROPERTIES to TOML
Turn PROPERTIES files into TOML. The same keys and values as TOML, with plain values written before tables, and a top-level list is written under the key items, as [[items]] tables when its entries are objects.
Converted in an isolated sandbox on our serversDeleted after 24 hours
Drop PROPERTIES files on the dialor turn it to pick what to do
Java Properties as TOML.The same keys and values, written as a TOML file.
What you get
One TOML file with the same keys and values as the PROPERTIES file. Plain values are written before tables, as TOML expects.
A top-level list is written under the key items. When its entries are objects, they come out as [[items]] tables.
What it cannot hold
TOML has no null. A null in an object is dropped, and the conversion gives a warning. A null inside a list fails, because a list cannot hold it.
An integer beyond the signed 64-bit range also fails, since TOML cannot store it.
Going the other way
To turn a TOML file back into key and value pairs, use TOML to PROPERTIES.
PROPERTIES and TOML.What each format is.
The formats
Java Properties
Key and value pairs in the Java properties format.
- Extensions
- .properties
- MIME type
- text
/x -java -properties - Kind
- Text and data
TOML
TOML configuration files, the format of Cargo and pyproject.
- Extensions
- .toml
- MIME type
- application
/toml - Kind
- Text and data
In your code.The same PROPERTIES to TOML conversion through the API, for your app or your agent.
$ cv convert report.properties report.toml$ cv convert report.properties report.tomlQuestions.What people ask about PROPERTIES to TOML.
Yes. The TOML file has the same keys and values. Plain values come first, followed by tables.
In an object, the null is dropped and you get a warning. Inside a list, the conversion fails.
It is written under the key items. If its entries are objects, they become [[items]] tables.
No. The conversion has no options and gives one file.