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

Re: use of JSON instead of XML

  • From: Mukul Gandhi <gandhi.mukul@gmail.com>
  • To: Peter Flynn <peter@silmaril.ie>
  • Date: Tue, 26 Jun 2018 11:08:00 +0530

Re:  use of JSON instead of XML
Thanks, Peter.

I agree with most of the points you wrote below.

On Tue, Jun 26, 2018 at 3:29 AM, Peter Flynn <peter@silmaril.ie> wrote:
This is a popular fallacy, exposed many times, most recently by Debbie
Lapeyre in her closing keynote at the MarkupUK Conference in London a
few weeks ago.

1. As Michael Kay rightly pointed out, it is probably true at a small
   scale (as are many claims to simplicity, not just in IT).

2. JSON is a good fit to shallow models of rectangular data (rows
   and columns) particularly where all components are present in every
   "record", even if sometimes set to null.

3. Because of its syntax, it can be absorbed at high speed with little
   excise compared with XML for similar scales and models.

4. JSON cannot handle mixed content at any meaningful scale, so it is a
   poor fit for deep data with complex conditions for optionality.

> My personal feeling is, that people would choose XML when they're
> developing a big software instead of a tiny one. And when good
> software engineering is important.

If this is true, then the software industry is in a worse state than we
imagined :-)

Developers and programmers appear to have a tendency to instinctively
choose JSON possibly because they believe it is a data format suitable
for their programs to read. Perhaps because they tend not to have much
experience with markup languages, and possibly because they have been
seriously misinformed in the past about how to use them, they tend to
steer away from XML.

There are many factors which influence the choice of file format, and it
really isn't possible to make very many rules about which one to choose.
As Ihe Onwuka said, JSON may be regarded as simpler because it has so
far been used for simpler things. Debbie's point was that it cannot be
used for complex TEXT documents because it cannot meaningfully model
mixed content. I don't think it is necessarily related to project size
at all, except that bigger projects may have people with greater
experience working for them.


Mukul Gandhi

[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.