a better way
fixing dojo 1.6.1 in Domino 8.5.3
an all-Java way of using XAgents for the JSON data you were looking for