Skip to content

Latest commit

 

History

History
39 lines (32 loc) · 552 Bytes

README.md

File metadata and controls

39 lines (32 loc) · 552 Bytes

json-to-toml

Converts JSON to TOML format. Preserves ordering and adds indentation.

Converts the values from keys named "note" into comments, replaces null-types with comments.

Example

JSON (input) TOML (output)
"person":
{
  "Note": "this is a person",
  "age": 22,
  "income": null
}
# this is a person
[person]
age = 22
# income

How to run

Run main.py, then choose one or more JSON file to convert using the file selector.