Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

If you can write Python, Perl, Ruby, etc. Hell even yq in the shell. Then you have a full programming language that can output YAML or JSON in any way you want. No weird DSL, no twisting yourself into knots.

Just write normal code, make any data structure, print it as any data format. Call the code, output to temp file, use file, delete file.

Is it clunky? Yes. But it works, and you can't get any simpler.

Keep it simple, silly.



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

Search: