Re: [xml-dev] XML design for converting to and from JSON?

From
Peter Hunsberger <>
To
"Costello, Roger L." <>, "" <>
Date
2014-12-15T21:19:38Z
ID
<CAKsvBp-HxeNP+ng4S_RdskOLua5p21-hVE=>
Thread
Re: [xml-dev] XML design for converting to and from JSON?
IBM has a hardware accelerated edge device that goes by the name of Datapower.  Among other things it has a facility for doing exactly this. The XML format is known as JSONX., Basic docs are here:

http://www-01.ibm.com/support/knowledgecenter/SS9H2Y_6.0.0/com.ibm.dp.xi.doc/json_jsonx.html

On Mon Dec 15 2014 at 10:44:36 AM Costello, Roger L. <[email protected]> wrote:
Hi Folks,

The ability to easily convert XML-formatted data into JSON-formatted data and vice versa is a good thing, I think.

If you were setting out to design some XML with a design goal that the XML can be easily converted to JSON, how would you design the XML?

Are there some features of XML that might inhibit its easy conversion to JSON? What about these features:

        - Namespaces?
        - Mixed content?
        - Processing instructions?
        - Comments?
        - Attributes?
        - DOCTYPE declaration?
        - Entities?
        - Other things?

Perhaps you have already created guidelines for XML design to enable easy conversion to JSON? If so, would you share your guidelines please?

/Roger



_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: [email protected].org
subscribe: [email protected].org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php