An open API service indexing awesome lists of open source software.

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

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
}
}
```