Re:JSONx is an IBM standard format to represent JSON as XML
by spullara on Friday April 29, 2011 @08:13PM
(#2499496)
Similarly you could use Doug Cutting's Avro format that does have a JSON representation. It is also evolvable like Protocol Buffers and works well in untyped languages. I highly recommend it.
Property lists -> XML -> Binary Property Lists
JSON -> JSON Schema -> Binary JSON
XML -> XML Schema -> XML Namespaces -> Binary XML
Or you can skip all that faffing around and just jump straight to protocol buffers. :)
ps. Protocol Buffers have a text format too that looks very similar to JSON. And you can encode protocol buffers as JSON, though I'm not sure there's good software support for it yet. I'm working on it.