[OT] is JSON all that great? - was Re: API Help

Gregory Ewing greg.ewing at canterbury.ac.nz
Thu Jun 15 02:11:25 EDT 2017


Michael Torrie wrote:
> I don't find JSON any more human readable than XML
> to be honest, perhaps less so because there's no way to define a formal
> schema to follow, at least that I'm aware of.

You mean like this?

http://json-schema.org/

One thing I like better about JSON than XML as a serialisation
format is that JSON constructs map one-to-one with data structures
typically found in programming languages, whereas XML constructs
don't. With JSON there's usually One Obvious Way to do the mapping,
but with XML you get spurious choices and inconvenient restrictions.

-- 
Greg



More information about the Python-list mailing list