OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
RE: XML design for converting to and from JSON?

Hi Folks,

A colleague pointed me to an XML-to-JSON tool:

	There are a bunch of free tools online that already do 
	this - the most frequent one I see cited is this one, which 
	states some principles (and provides configurable options) 
	for how to do the translation.


I checked out the tool - nice!

For example, it converts this:

<Book id="MCD">
      <Title>Modern Compiler Design</Title>
      <Author>Dick Grune</Author>

to this:

    "@id": "MCD",
    "Title": "Modern Compiler Design",
    "Author": "Dick Grune",
    "Publisher": "Springer"

I like that it encodes XML attributes by prefixing the attribute name with the @ symbol.


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS