It's not a strict answer, and I'm not the one being asked, but about doing "that" while having at least JSON alone, you can proxy the queries and wrap answers by yourself. E.g. in nginx you can use HttpEchoModule:
http://wiki.nginx.org/HttpEchoModule
http://www.gabrielweinberg.com/blog/2011/07/nginx-json-hacks...