问题
I have somewhat unique requirement, which I could not find an answer to so far. I need a JSON to JSON transformation. Preferably, if I could plug it into Apache Camel, that would be wonderful.
As a side note, I would also welcome any suggestion to optimally store the JSON to JSON mapping. Is there any XSLT-based way of achieving this?
Thanks! Mario
回答1:
ZORBA with jsonIQ : http://www.jsoniq.org/ it's a native library, but with high performance. You have examples in the web page.
回答2:
There is a simple design here: https://rawgithub.com/chunqishi/edu.brandeis.cs.json2json/master/docs/design-2014-04-09.html
May be you can improve it by source code, https://github.com/chunqishi/edu.brandeis.cs.json2json.
来源:https://stackoverflow.com/questions/10087519/json-to-json-transformation-preferably-inside-apache-camel