[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Best options for converting JSON to XML

  • From: David Lee <dlee@calldei.com>
  • To: "ihe.onwuka@gmail.com" <ihe.onwuka@gmail.com>, "xml-dev@l..."<xml-dev@l...>
  • Date: Sat, 9 Nov 2013 17:25:37 +0000

RE:  Best options for converting JSON to XML
You may be interested in this paper which covers in some detail many of the issues of converting between JSON and XML.

http://www.calldei.com/pubs/Balisage2011/index.html

The simple answer is that there are *many* techniques and tools for converting between JSON and XML, but none of them are perfect or fit all desires.
You need to decide what aspects of conversion are important to your application.
You can then search the web for various tools and/or libraries to help.
The tool mentioned in the above paper is available but is only as a POC so I dont recommend it.
xmlsh has  a very primitive JSON to XML conversion 

http://www.xmlsh.org/CommandJson2xml

This style of conversion is quite easy to do in nearly any language that supports both XML and JSON.
What's hard is to come up with a conversion which produces XML that an XML person would like to read and JSON that a JSON person would like to read simultaneously.



----------------------------------------
David A. Lee
dlee@calldei.com
http://www.xmlsh.org

-----Original Message-----
From: Ihe Onwuka [mailto:ihe.onwuka@gmail.com] 
Sent: Saturday, November 09, 2013 11:26 AM
To: xml-dev@lists.xml.org
Subject:  Best options for converting JSON to XML

I am considering alternatives to JSON Schema for validating JSON so
the natural idea is to convert to XML and use some sort of schema.

I'd be grateful for thoughts on the advisability of this type of
thinking in the first place and suggestions for converting the JSON to
XML.

thanks

_______________________________________________________________________

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: xml-dev-unsubscribe@lists.xml.org
subscribe: xml-dev-subscribe@lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php


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


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.