All,
I am working on a Flash AS2 project in which I have the choice of retrieving a dataset in XML or JSON.
The data set is probably about 100-1000 rows of data; each row has approximately 50 fields; most values ββare numeric.
If I use XML, I can define the XML itself so that it is as compact as possible.
So, I could use something like this:
<rows>
<row col0="1" col1="2" col2="3" ... col49="50" />
...
<row col0="1" col1="2" col2="3" ... col49="50" />
</rows>
In my initial tests, JSON and XML data are "weighted" approximately the same (in kilobytes). However, I noticed that Flash is able to parse XML MUCH faster - it takes about 3 times to parse JSON. (I use the class from http://www.json.org/json.as ).
, XML, JSON, , .
JSON? , json.org? , AS2 AS3 ( , ...)? - ?
.
Cheers,