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

I legit saw a team asking for a tool that does JSON -> JSON transformations at work. The XSLT for JSON vibes were almost too strong.


That's jq. At least useful for a lot of transformations.


A little different, but yeah. (If I'm not mistaken, xslt had a bit more of a defined language and way more formalism.)

That said, there are plenty of examples. JSONPath, JQ, Jolt...

I am not claiming that this is not useful. Just amused to see the wheel go around.


Oh, it absolutely goes around in this industry.

For a simple, most frequently used subset of jq a more modest, non-Turing-complete language of transforming strings could be created, so that for many useful cases one just need to provide such a string. Strictly for JSON -> JSON.


yes, jq is XSLT (and more) for JSON


and more?




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

Search: