OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
Re: [xml-dev] RE: List of differences between XML and JSON?

On Fri, May 1, 2015 at 2:53 PM, Costello, Roger L. <costello@mitre.org> wrote:
> That JSON appears to me to express containment/hierarchy/parent-child. Surely it is expressing this:
>         Book has a title "Parsing Techniques", with Authors Dick Grune
>         and Ceriel J.H. Jacobs, date (of publication) 2007, and publisher
>         Springer.
> Isn't the JSON expressing a "hasA" view?

Any JSON object can be part of (shared by) many other JSON objects.
This isn't so with a node of an XML document. In a tree, by definition
any node can have at most one parent.

So, in an XML document there is real ownership, while within a JSON
document this is just "sharing".

The ability of any JSON object to be shared amongst any number of
other JSON objects is what makes it possible to have very efficient
modification of a JSON object (compared with complete
copying+modifying of an XML document, to create an entirely new,
non-overlapping XML document). In the former case, only the paths
leading to the modifications need to be copied in the new object, all
other sub-objects can be shared between the old and the new JSON

Dimitre Novatchev
Truly great madness cannot be achieved without significant intelligence.
To invent, you need a good imagination and a pile of junk
Never fight an inanimate object
To avoid situations in which you might make mistakes may be the
biggest mistake of all
Quality means doing it right when no one is looking.
You've achieved success in your field when you don't know whether what
you're doing is work or play
To achieve the impossible dream, try going to sleep.
Facts do not cease to exist because they are ignored.
Typing monkeys will write all Shakespeare's works in 200yrs.Will they
write all patents, too? :)
I finally figured out the only reason to be alive is to enjoy it.

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

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS