https://github.com/lkiesow/2json
Simple tools to convert YAML and TOML files to JSON
https://github.com/lkiesow/2json
converter json toml yaml
Last synced: 6 months ago
JSON representation
Simple tools to convert YAML and TOML files to JSON
- Host: GitHub
- URL: https://github.com/lkiesow/2json
- Owner: lkiesow
- License: mit
- Created: 2024-06-30T13:45:34.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-30T13:51:57.000Z (almost 2 years ago)
- Last Synced: 2024-11-27T20:31:28.233Z (over 1 year ago)
- Topics: converter, json, toml, yaml
- Language: Python
- Homepage:
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# YAML/TOML to JSON Converter
Simple tools to convert YAML and TOML files to JSON.
### Example: `test.yaml`
```yaml
some-key:
a: 1
b: 2
```
```json5
❯ yaml2json test.yaml
{
"some-key": {
"a": 1,
"b": 2
}
}
```
### Example: `test.toml`
```toml
[some-key]
a = 1
b = 2
```
```json5
❯ toml2json test.toml
{
"some-key": {
"a": 1,
"b": 2
}
}
```