Convert 'compositeData' to a 'json object' in client javascript


var compositeDataJson = dojo.fromJson('#{javascript:var compositeDataObj = new com.ibm.xsp.extlib.util.json.JObject();compositeDataObj.putAll(compositeData);return compositeDataObj.toString()}');
All code submitted to OpenNTF XSnippets, whether submitted as a "Snippet" or in the body of a Comment, is provided under the Apache License Version 2.0. See Terms of Use for full details.
1 comment(s)Login first to comment...
Oliver Busse
(at 08:07 on 06.09.2014)
Very nice one!