10-13-2011 11:46 AM
Hi.
Does Tablet OS SDK for Adobe AIR support parsing of an API in JSON format ? Can we parse JSON in playbook in other words.
thanks in advance
Solved! Go to Solution.
10-13-2011 11:52 AM - edited 10-13-2011 12:01 PM
Although I'm sure there are third-party libraries you could find with Google, I'll just note here that AIR 3 includes a JSON class as one of the top-level APIs.
http://help.adobe.com/en_US/FlashPlatform/referenc
We'll be getting AIR 3 as part of the upcoming 2.0 release, I believe, so building in support for that is probably your best option.
Edit: Note also that this is apparently done with native code, so it should be far faster than any of the existing third-party libraries you can find.
10-13-2011 02:58 PM
10-14-2011 03:38 AM
10-14-2011 09:50 AM
10-14-2011 10:01 AM
10-14-2011 12:49 PM
10-14-2011 02:00 PM
jtegen wrote:
That we wont see a JSON API in the QNX library.
Oh, for sure, I agree we won't. I can't imagine them putting one there when AIR 3 will have it.
10-14-2011 02:42 PM - edited 10-14-2011 02:43 PM
Just a heads up for anyone using a 3rd party JSON library, Adobe decided to make "JSON" a root level class, which means upgrading to AIR 3.0 will instantly break your existing code (can't reference another JSON,if JSON is a root class).
Minor fixes, but maybe a good thing to have on your radar. You can either replace the 3rd party lib, or replace all your calls with the fully qualified path name, ie: com.adobe.serialization.JSON.decode();
10-14-2011 07:23 PM