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