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

Re: JSON


javascript json pitfalls
On 06/16/06 04:24, David Megginson wrote:

> That said, I think that part of the disconnect is between people who
> think in terms of serialized objects and people who think in terms of
> general information interchange, including tree models.  There have

What you said in this and the next paragraph points at some of the
pitfalls of trying to exchange serialised objects across programming
languages. I presume you approve of interfaces that are built with the
intent of exchanging "documents", which I understand to be pieces of
information encoded in a well-defined representational structure,
without the attached notion of "types" or "identity", which are key
concepts in programming objects.

> JSON works well for AJAX because it's tightly targetted at JavaScript,
> just like Java RMI is tightly targetted at Java or DCOM is tightly

This analogy is correct but...

> targetted at Windows development.  The other languages that have JSON
> libraries use them almost exclusively for exchanging information with
> Javascript in browsers, and as a result, developers are willing to

... I find JSON to be a pretty good "document exchange format" and
where I've used it we don't have a browser or JavaScript anywhere in
the picture. Essentially, it offers a structural representation of
scalars (with two fundamental types -- string, number), lists, and
maps (key-value pairs), which would be found in just about any
document representation format.

> live with the JavaScript style and idiosyncracies.  Also, most of the
> JSON information exchanged is single-purpose (server-browser or
> browser-server messaging) and short lived (typically less than a
> second), so the design goals are different.

If I have to write an article I would still choose to write it in
something less intrusive like JSON than in XML. For now, I prefer to
hand write my reports in LaTEX ;-)

-- 
Tahir

PURCHASE STYLUS STUDIO ONLINE TODAY!

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