With the xAgent I have created (based on the JSONandRest example in openntf by Nikolas Heildoff), I am able to retrieve a JSON response. The xpage itself simply makes a call to a Java method which returns JSON data.
My current challenge is figuring out how to read this JSON into a JavaScript variable so that I can manipulate it as needed.
An ideal scenario would look something like this:
var myJson = getJson("Json.xsp")
Thank you in advance, Arun