3 ms·
I'm a huge fan of NestedText, especially as there is no escaping needed ever. If you ever want to use it as a pre-format to generate either TOML, JSON, or YAML
by AndyKluger 4y ago
I'm a huge fan of NestedText, especially as there is no escaping needed ever.
If you ever want to use it as a pre-format to generate either TOML, JSON, or YAML, I used the official reference implementation to make a CLI converter between them and NestedText.
When generating one of these formats, you can use yamlpath queries to concisely but explicitly apply supported types to data elements.
- My CLI converter: https://github.com/AndydeCleyre/nestedtextto https://github.com/AndydeCleyre/nestedtextto
- yamlpath info: https://github.com/wwkimball/yamlpath/wiki/Search-Expressions https://github.com/wwkimball/yamlpath/wiki/Search-Expression...
- dmos62 4y agoWow, that's really versatile! Thanks for sharing! `json2nt` seems like a great alternative to `jq .` for pretty printing.