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


  • From: Thomas Passin <list1@tompassin.net>
  • To: "xml-dev@lists.xml.org" <xml-dev@lists.xml.org>
  • Date: Tue, 01 Aug 2017 08:58:28 -0400

Re:  XML vs JSON
On 8/1/2017 7:34 AM, Mukul Gandhi wrote:
When talking about designing REST services, JSON seems to clearly win.
The whole software world seems to be biased in favour of JSON it seems,
for this criteria. Although I have read, that in many cases REST
services can use XML instead of JSON. I think, JSON's major use case is
in the use within REST.
REST has nothing to do with either XML or JSON, and the concept of REST was solidified way before JSON existed. In REST, you receive a request, which for a long time was usually a web form - that is, content type = application/x-www-form-urlencoded - and in response you emit a document which represents some part of the state known to the server. The document can be text, XML, JSON, or something else.

You personally may think it is "easier" to extract the data from a JSON response compared with an XML response, or you personally may happen to encounter more JSON interfaces, but others have different experiences and would be happier with XML or something else. It has little to do with being REST or not.


  • References:
    • XML vs JSON
      • From: Mukul Gandhi <gandhi.mukul@gmail.com>

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


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.
First Name
Last Name
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.