http://www.json.org/json.as
On Wed, May 20, 2009 at 5:18 PM, Karl DeSaulniers <[email protected]>wrote: > 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 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 you're just sending small bits of >>> data back and forth and don't need to do any complex filtering/sorting of >>> data in Flash, JSON will definitely do the trick, and I would recommend >>> it >>> over XML. >>> >>> - Taka >>> >>> On Wed, May 20, 2009 at 3:11 PM, Manish Jethani < >>> [email protected]>wrote: >>> >>> On Thu, May 21, 2009 at 12:12 AM, Gregory Boland >>>> <[email protected]> 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 encode and decode functions of the JSON class. >>>> >>>> You could also go a step further and use my JSONObject class, which I >>>> find a bit more intuitive: >>>> >>>> >>>> http://manishjethani.com/blog/2008/08/25/jsonobject-for-reading- >>>> and-writing-json-in-actionscript/ >>>> >>>> Manish >>>> _______________________________________________ >>>> Flashcoders mailing list >>>> [email protected] >>>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >>>> >>>> _______________________________________________ >>> Flashcoders mailing list >>> [email protected] >>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >>> >> >> _______________________________________________ >> Flashcoders mailing list >> [email protected] >> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >> > > > > _______________________________________________ > Flashcoders mailing list > [email protected] > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > _______________________________________________ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

