3 ms·
Is there a tool that parses yaml and outputs json, so you could check if the yaml you wrote parses as you intent?
by sampo 4y ago
Is there a tool that parses yaml and outputs json, so you could check if the yaml you wrote parses as you intent?
- ancieque 4y agoI guess this can easily be scripted with https://pypi.org/project/yq/ https://pypi.org/project/yq/ Internally this seems to be a wrapper around jq :)
- chriswarbo 4y agoI use https://kislyuk.github.io/yq https://kislyuk.github.io/yq (it also includes and 'xq' command, which converts XML to JSON)
- jwilk 4y agogojq (https://github.com/itchyny/gojq https://github.com/itchyny/gojq) and fq (https://github.com/wader/fq https://github.com/wader/fq) can read YAML and output JSON. But that won't nescessarily help, because other parsers can intepreret that YAML differently.