I need to return a list of blog posts (subject, body, datecreated, commentCount)
Should I return a json response or xml?
In the calling page, I will have to inject this into the page (its an ajax call).
So I need to be able to loop through the blog posts, and create HTML with the blog post info etc. and inject into the page.
I’ll be using jquery.
A JSON object is native Javascript, definitely recommended for client-side efficiency. Use the latest version of JQuery for secure JSON loading. Jquery is easy with $.each() to loop through JSON data and append it to page elements. Hope that helps!