|
Would it be too much to ask for a description of a 'real world'
implementation of JSON, one where XML and web services would not fit nor
perform very well?
I don't doubt the usefulness of JSON, I just need to learn by example (and
learn to live within standards)
Maurice O'Prey
-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx] On
Behalf Of Joe Pluta
Sent: 28 April 2008 18:21
To: Web Enabling the AS400 / iSeries
Subject: Re: [WEB400] XML and JSON
Walden H. Leverich wrote:
If this is a true webservice with WSDL and all that, than the payloadsI don't know that I call SOAP simpler than JSON, but it's more
are XML, and usually with children not attributes. As Joe mentioned,
it's definitely "efficiency challenged" (nice phrase), but it's also the
simplest, and there's something to be said for simplicity when working
between machines and technologies.
If the response is for an Ajax request then we go the JSON approach. Not
only because the size is (typically) smaller, but because it's really
nice to be able to rehydrate a complete object graph on the browser with
a simple eval statement (or in our case Prototype's
Ajax.Response.responseJSON property)
standardized, I guess. It's just that the majority of the standarized
junk is pretty useless in many circumstances, primarily the Ajax type of
request. As Walden points out, JSON is designed specifically for quick
movement of data between machines - structures on the wire. This is the
part that I've had to rewrite so many times over the years, and its
amazing how little work it is with JSON.
Joe
--
This is the Web Enabling the AS400 / iSeries (WEB400) mailing list
To post a message email: WEB400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/web400.
--
This is the Web Enabling the AS400 / iSeries (WEB400) mailing list
To post a message email: WEB400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/web400.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.