I want to create a JSON object in java code and then pass it on to javascript/jquery for parsing(further processing). I am using Struts 2 framework.
This has to be done at page load, not after a AJAX call. How to access the JSON object (created in java) in javascript/jquery.
Also are any API's for creating JSON object for java object??