The OpenX API returns data in XML format by default, but that doesn't mean you can't get JSON back if you want it. Just make one little change to the URL you call and OpenX will return JSON responses instead.
To get JSON responses, insert a /JSON after the service name (such as "PBMClaimV1") in the URL, but before the method name ("Get"). When we see that URL, we'll return JSON insead.
That's it. No assembly required.
If you want to wrap your response in an object, simply pass the object name into your query as the "callback" value. For example: