ActionScript 3 JSON Library Now Available

| 4 Comments | No TrackBacks

I'm happy to announce that my JSON library has been made publicly available through labs. JSON stands for "JavaScript Object Notation" and is a lightweight data exchange format, sort of like WDDX on a diet.

You can download the JSON library as part of the core ActionScript 3 library.

Usage is as follows:

// import the JSON library from the core serialization package import com.macromedia.serialization.json.JSON; // Encode a native ActionScript object as a JSON string var jsonString:String = JSON.encode( someValue ); // Decode a JSON string into a native ActionScript object var value:* = JSON.decode( jsonString );

If you run into any problems with it, let me know. It passed all of the unit tests, but there's always a chance that a test case is missing and there's a hidden bug somewhere. I'm interested in hearing any feedback you may have!

Tags: , , , , , ,

No TrackBacks

TrackBack URL: http://www.darronschall.com/mt/mt-tb.cgi/97

4 Comments

Leave a comment

Flex.org - The Directory for Flex

Archives