Hacker News new | past | comments | ask | show | jobs | submit login

Is there a tool that parses yaml and outputs json, so you could check if the yaml you wrote parses as you intent?



I guess this can easily be scripted with https://pypi.org/project/yq/ Internally this seems to be a wrapper around jq :)


I use https://kislyuk.github.io/yq (it also includes and 'xq' command, which converts XML to JSON)


gojq (https://github.com/itchyny/gojq) and 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: