This is a free online tool to convert a property file format to JSON formatted data to. This can be useful tool for converting all property file entries to a single JSON document. You can convert any KEY = VALUE
format data to JSON data using this tool.
This tool can take care of nested property conversion to nested JSON objects by name matching.
JSON (JavaScript Object Notation) is a popular format used to transfer data between applications. It is very common object format in web applications. JavaScript applications do not require any speciall handling for this type of data since its is already an object of javascript format.
Property files are common way to provide KEY, VALUE pair configuration for programs.
Many programming langugages use configuration files that have simple format that stores each KEY = VALUE
pair in new line.
A commonly accepted propeerty file convention is to use dot (.)
or underscore (_)
as a separator in keys.
e.g. dot (.)
as a separator
Persons.person.name = John
Persons.person.age = 30
Persons.person.city = SFO
Or underscore (_)
as a separator
Persons_person_name = John
Persons_person_age = 30
Persons_person_city = SFO
In case your property file does not follow this convention you may need to specify the separator for successful conversion to JSON format.
JSON Objects are easy to read using JavaScript and can also be easily consumed by many REST based services. This tool can help data conversion easy for property file to JSON format on one click.
The online converter is a good help for property file format data to JSON format. This tool can be handy since you just need to paste the property file data in the input field and hit convert button.
The same task can be done manually, however it can be cumbersome. This tool can save you some time and follow a consistent pattern to create a valid JSON document from well formatted property file.
You just need to copy and paste the property file content into this tool and get the JSON format data.
JSON Objects are easy to read in JavaScript, you can easily convert data in a property file to a JavaScript Object and access it easily in Node.js , Express.js, React.js anre more JavaScript based applications and frameworks.
Many times, we do not want to use property files. In that case this tool can help you convert entire property file into a JSON document.
The tool follows a simple naming convention and can identify nested property values based on name matching (case-sensitive).