[mapguide-internals] JSON support in mapagent Was: Summer of Code Projects

Jason Birch Jason.Birch at nanaimo.ca
Thu Mar 1 15:04:33 EST 2007

I've been looking at the HTTP handler code, but am not a C type, and
haven't been able to figure this out...

Is each request wrapped in some kind of handler that could convert JSON
requests to XML requests, and then on the way out apply the generic
conversion that Paul has shown, resetting the output content type to
application/json (or text/x-json, or whatever the current thinking is)?

If so, this might be a pretty easy hack.


-----Original Message-----
From: Paul Spencer
Subject: Re: [mapguide-internals] Summer of Code Projects

JSON can easily represent any XML, there is a strict formula for

function xml2json($domElement) {

More information about the mapguide-internals mailing list