HI Peter, Matthew & All,
If wrap json directly, we need to do xml escape, It is boring. or XML Parser cannot parse the follow message(I put <x> into the value of status). <message from='pubsub.shakespeare.lit' to='[email protected]' id='foo'> <event xmlns='http://jabber.org/protocol/pubsub#event'> <items node='princely_musings'> <item id='ae890ac52d0df67ed7cfdf51b644e901'> <json xmlns="urn:xmpp:json:0"> { "name": "romeo", "age": "421", "status": "<x>" } </json> </item> </items> </event> </message> Why not use the traditional way? For example, to extend an element called <cdata>, then whatever type of message can be put into. Please comment! <message from='pubsub.shakespeare.lit' to='[email protected]' id='foo'> <event xmlns='http://jabber.org/protocol/pubsub#event'> <items node='princely_musings'> <item id='ae890ac52d0df67ed7cfdf51b644e901'> <cdata xmlns="urn:xmpp:cdata:0"><![CDATA[ { "name": "romeo", "age": "421", "status": "<x>" } ]]> </cdata > </item> </items> </event> </message> Regards .:|:.:|:. Field Tian | CCATG HF Software Engineer | +8655166111136 -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Peter Saint-Andre Sent: 2013年10月11日 7:08 To: XMPP Standards Subject: Re: [Standards] Proposed XMPP Extension: JSON Containers Updated to version 0.0.2 on the website. On 10/9/13 9:20 AM, XMPP Extensions Editor wrote: > The XMPP Extensions Editor has received a proposal for a new XEP. > > Title: JSON Containers > > Abstract: This specification defines an element to be used for encapsulating > JSON data in XMPP. > > URL: http://xmpp.org/extensions/inbox/json-containers.html > > The XMPP Council will decide in the next two weeks whether to accept this > proposal as an official XEP. >
