logoalt Hacker News

akoyesterday at 5:42 PM2 repliesview on HN

What is a better alternative if you just need to transform JSON from one structure to another JSON structure?


Replies

asa400yesterday at 6:28 PM

Load it into a full programming language runtime and use the great collections libraries available in almost all languages to transform it and then serialize it into your target format. I want to use maps and vectors and real integers and functions and date libraries and spec libraries. String to string processing is hell.

rorylaitilayesterday at 6:38 PM

Imperative code. Easy to mentally parse, comment, log, splice in other data. Why add another dependency just to go from json>json? That'd need an exceptional justification.