I have this application where I read a sequence of JSON object ... say, j1,j2,...,jn and I need to transform them to j1',j2',...,jn' -- NOTE this is a JSON to JSON transformation.
At the moment I'm doing this through utility methods which traverse the first object and then compose the second object.
I'm reasonably happy with my approach, however it gets tedious. I was wondering if folks know of toolkits or code patterns to address this problem.
Thanks.
PS: For example I looked at XSLT a million years ago to solve similar problems with XML but I was not too enamored by XSLT ... is there an XSLT for JSON or a general purpose transform languages? -- NOTE: XSLT is cited as an analogous technology for XML -- I am NOT looking to transform JSON to XML or vice-a-verse.
PPS: I reckon I could use an ETL tool however I think this is a very light weight application and ETL would be a too involved.