[Flashcoders] JSON Experiences

2009-05-20 Thread Gregory Boland
Dear list, I am looking into using JSON to bring data into Flash as opposed to XML and I wondering what other people's experiences have been with it. People tell me that its much easier to use than xml and easier to implement. Does anyone know of a good place to see some AS3 code that uses JSON

Re: [Flashcoders] JSON Experiences

2009-05-20 Thread Steven Sacks
If your XML has namespaces (like YouTube's xml feeds), then, yes, JSON is easier to implement. Namespace support in E4X is the very definition of Royal Pain In The Arse. It's why the AS3 code lib for YouTube uses their JSON feed instead. It's just too ridiculous to deal with all those

Re: [Flashcoders] JSON Experiences

2009-05-20 Thread Manish Jethani
On Thu, May 21, 2009 at 12:12 AM, Gregory Boland breakfastcof...@gmail.com wrote: Does anyone know of a good place to see some AS3 code that uses JSON so i can see how it works? Using JSON is fairly simple using the corelib library: http://code.google.com/p/as3corelib/ You have to use the

Re: [Flashcoders] JSON Experiences

2009-05-20 Thread Taka Kojima
IMO, there are times to use JSON and times to use XML. JSON is very easy to implement and not very hard to grasp... all you're basically doing is running an encode when you send data out and a decode when you bring data in. So you only need two functions. E4X is definitely powerful, however if

Re: [Flashcoders] JSON Experiences

2009-05-20 Thread Steven Sacks
Agreed! On May 20, 2009, at 3:45 PM, Taka Kojima wrote: IMO, there are times to use JSON and times to use XML. JSON is very easy to implement and not very hard to grasp... all you're basically doing is running an encode when you send data out and a decode when you bring data in. So you

Re: [Flashcoders] JSON Experiences

2009-05-20 Thread Karl DeSaulniers
Sorry to be so dinosaur, but is there something like this for AS2? Encoding and decoding sent data for and AS2 project? Karl DeSaulniers Design Drumm http://designdrumm.com On May 20, 2009, at 6:17 PM, Steven Sacks wrote: Agreed! On May 20, 2009, at 3:45 PM, Taka Kojima wrote: IMO, there

Re: [Flashcoders] JSON Experiences

2009-05-20 Thread Taka Kojima
http://www.json.org/json.as On Wed, May 20, 2009 at 5:18 PM, Karl DeSaulniers k...@designdrumm.comwrote: Sorry to be so dinosaur, but is there something like this for AS2? Encoding and decoding sent data for and AS2 project? Karl DeSaulniers Design Drumm http://designdrumm.com On May

Re: [Flashcoders] JSON Experiences

2009-05-20 Thread Karl DeSaulniers
Thank you Taka. Much obliged... Karl On May 20, 2009, at 7:45 PM, Taka Kojima wrote: http://www.json.org/json.as On Wed, May 20, 2009 at 5:18 PM, Karl DeSaulniers k...@designdrumm.comwrote: Sorry to be so dinosaur, but is there something like this for AS2? Encoding and decoding sent