Is there an XSLT equivalent for JSON? Something to allow me to do transformations on JSON like XSLT does to XML.
I think not, but python and javascript do a good job slurping in JSON. Great idea, though.
Interesting idea. Some searching on Google produced a few pages of interest, including:
- an outline of how such a "jsonT" tool might be implemented, and some downloads
- some discussion of that implementation
- a company which may have implemented something suitable
Hope this helps.
Not too sure there is need for this, and to me lack of tools suggests lack of need. JSON is best processed as objects (the way it's done in JS anyway), and you typically use language of the objects itself to do transformations (Java for Java objects created from JSON, same for Perl, Python, Perl, c#, PHP and so on). Just with normal assignments (or set, get), looping and so on.
I mean, XSLT is just another language, and one reason it is needed is that XML is not an object notation and thus objects of programming languages are not exact fits (impedance between hierarchic xml model and objects/structs).