Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.

JSON response into HTML format for Page activity report

Avatar

Level 4

Hi,

I am getting a JSON response in the content page by dragging my component from the sidekick.I want each value of JSON object to be displayed in my JSP page and that should be in HTML table format.Can you suggest any reference link regarding this

3 Replies

Avatar

Level 10

You need to manually read data in JSON and put in html format

A good example is available here jsfiddle: http://jsfiddle.net/mjaric/sewm6/ 

Avatar

Level 4

I want to read the data from JSONObject and display it in the form of HTML table format.My JSP page returns JSONObject,it contains all the data,I want to retrieve particular data from JSONObject and I need to display in table format in my JSP not using Javascript.

Avatar

Level 10

It will be same as how you read json in java

Here it shows how you can json in jsp ( configure it html markup )

http://candidjava.com/json-array-with-jsp/

I would not recommend this as you would need to write alot of java in JSP