Hello :)
JSON is speed !! the xml parser is slow !
With JSON your objects are typed.. in XML all properties, attributes, are
String values only.
You can try to compare 2 big files in XML and JSON to see the difference :)
For me JSON is good but EDEN is better ;) Eden is like JSON but you can
instanciate your customs objects, securize the datas etc....
You can compare JSON and EDEN in my openSource framework :
http://vegas.riaforge.org/
1 - dowload with the zip or the SVN my framework
2 - install the src folder in flash in your ActionScript preference list.
3 - Try the example in VEGAS and this extension ASGard :
(JSON)
http://vegas.riaforge.org/index.cfm?event=page.svnbrowse&path=%2FAS2%2Ftrunk%2Fbin%2Ftest%2Fvegas/string
(EDEN)
http://vegas.riaforge.org/index.cfm?event=page.svnbrowse&path=%2FAS2%2Ftrunk%2Fbin%2Ftest%2Fasgard/net
(Config tool with EDEN or JSON loader)
http://vegas.riaforge.org/index.cfm?event=page.svnbrowse&path=%2FAS2%2Ftrunk%2Fbin%2Ftest%2Fasgard/config
(Localization tool with Eden or JSON loader)
http://vegas.riaforge.org/index.cfm?event=page.svnbrowse&path=%2FAS2%2Ftrunk%2Fbin%2Ftest%2Fasgard/system
PS : all examples are in the AS2/trunk/bin/test/ directory
EKA+ :)
2006/11/23, [EMAIL PROTECTED] <[EMAIL PROTECTED]>:
I know one of the advantages of the JSON format is easier to maintain
code, ie your config files can be essentially actionscript.
But are there any oither advantages over XML? What about performance?
Does it 'parse' faster?
Jim Bachalo
[e] jbach at bitstream.ca
[c] 416.668.0034
[w] www.bitstream.ca
--------------------------------------------
"...all improvisation is life in search of a style."
- Bruce Mau,'LifeStyle'
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com