× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



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 payloads
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)

I don't know that I call SOAP simpler than JSON, but it's more
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

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.