Joe

I did see your initial post and I'm sure everyone of us could shave a few
bytes of data transmitted.

Trouble is, until there is a 'Real World Standard' e.g. the W3C Standard for
an Order we aren't going to get very far IMHO, XML or JSON (or OKI KOKI
2000)

Naive I know!

Maurice


-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx] On
Behalf Of Joe Pluta
Sent: 28 April 2008 19:21
To: Web Enabling the AS400 / iSeries
Subject: Re: [WEB400] XML and JSON

Maurice O'Prey wrote:
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

Did you see my initial post?

JSON:

[ "customerid" : 1123454, "name" : "Joe Pluta", "email" :
"junkmail@xxxxxxxxxxxxxxxxx" ]


*By itself*, the *raw* XML is nearly the same:

<customer customerid = 1123454 name = "Joe Pluta"
email="junkmail@xxxxxxxxxxxxxxxxx" />


But this assumes that you use attributes rather than children. Many people
don't and children fatten XML considerably:

<customer>
<customerid>1123454</customerid>
<name>Joe Pluta</name>
<email>junkmail@xxxxxxxxxxxxxxxxx</email>
</customer>


That's almost a 50% increase, I think. But then go to a standard web
service using SOAP, and you're talking about typically at least 300
characters of SOAP envelope, which would more than quadruple the size of
the original message.

Joe


As an Amazon Associate we earn from qualifying purchases.

This thread ...

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.