Pinned topic Cast Iron & JSON
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Has anyone done any parsing/mapping of JSON data? I'm looking for an example or sample implementation of how this might work. Thanks in advance.
Updated on 2011-03-01T21:28:11Z at 2011-03-01T21:28:11Z by SystemAdmin
There's a very helpful stylesheet2010-05-07T17:35:47ZThis is the accepted answer. This is the accepted answer.http://www.bramstein.com/projects/xsltjson/
I have used this stylesheet in a number of projects for converting XML to JSON so that I can develop Cast Iron projects that use AJAX. Basically you will invoke your orchestration, get the data you require, use the Apply XSLT activity to call the xml-to-json XSLT to convert the data to JSON, serialize the result and send the reply.
I have not developed any project that requires converting JSON to XML, but there may be other tools out there.
If you require further assistance, reply to this post and I'll get back to you.
Director of Solutions Engineering and Cast Iron guru.