lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Wed, May 20, 2015 at 1:58 PM, Matthew Wild <mwild1@gmail.com> wrote:
> So it would be ok to request a JSON processor that has to correctly
> modify a JSON document while preserving things irrelevant to the data
> - like whitespace, whether key names are quoted, and what kind of
> quotes are used?


nitpicking: JSON mandates all keys to be quoted, and only double
quotes are valid.  the only "style" variations allowed are whitespace
and field order.

in general, i agree with you: requiring to preserve non-significant
details is broken by design.

unfortunately.... in XML some of those things are not non-significant.
mostly because schizophrenic nature of XML, where it can be a text
document with annotations or a data structure.  the requirements for
each are very different, so a general tool might have to preserve
things that many uses consider irrelevant.

-- 
Javier