https://github.com/garrison/toml2json
toml <=> json conversion scripts
https://github.com/garrison/toml2json
Last synced: 9 months ago
JSON representation
toml <=> json conversion scripts
- Host: GitHub
- URL: https://github.com/garrison/toml2json
- Owner: garrison
- License: mit
- Archived: true
- Created: 2014-08-06T06:31:52.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2020-10-15T18:02:52.000Z (over 5 years ago)
- Last Synced: 2025-02-06T11:17:41.370Z (over 1 year ago)
- Language: Python
- Size: 4.88 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
toml2json
=========
I needed a script I could run from the commandline to convert toml_ to
json_ (and vice versa).
This script is written in python, and depends on the `toml package
`_
Because ``datetime``'s are not supported in JSON, they do not make the
roundtrip properly. After the toml => json => toml conversion, each
``datetime`` will be a string, just like when using the web service
http://toml-to-json.matiaskorhonen.fi/
EDIT: I no longer use this. See https://github.com/dbohdan/remarshal for a replacement.
.. _toml: https://github.com/toml-lang/toml
.. _json: http://json.org/