Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Adobe AIR Development

Reply
Contributor
mehrozetkxel
Posts: 22
Registered: ‎08-02-2011
My Device: 9000 developer
My Carrier: developer
Accepted Solution

JSON support for Playbook development

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

Please use plain text.
Developer
peter9477
Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10
My Carrier: none

Re: JSON support for Playbook development

[ Edited ]

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/reference/actionscript/3/JSON.html

 

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.


Peter Hansen -- (BB10 and dev-related blog posts at http://peterhansen.ca.)
Author of White Noise and Battery Guru for BB10 and for PlayBook | Get more from your battery!
Please use plain text.
Developer
jtegen
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10
My Carrier: Verizon

Re: JSON support for Playbook development

There are several 3rd party AS3 libraries that manages JSON very well. If AIR 3 will have a JSON APIs as a part of that, then that will be one less library to worry about.
Please use plain text.
Contributor
mehrozetkxel
Posts: 22
Registered: ‎08-02-2011
My Device: 9000 developer
My Carrier: developer

Re: JSON support for Playbook development

That sounds good but can you tell me when 2.0 would be officially released and available for development purpose ? Exact date to be pricise
Please use plain text.
Developer
jtegen
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10
My Carrier: Verizon

Re: JSON support for Playbook development

We will never get an exact date from RIM. Honestly, we have never received any date from any release from RIM. When it is posted, then we know about it. Rumor has it that it will be released during or shortly after DevCon next week. But, it just might be announced at DevCon that the SDK will be released "soon". We just never know. In your case, I would just use a 3rd party JSON library (one from Adobe is good) and then evaluate if the QNX one is any better (assuming they are including it, which I doubt).
Please use plain text.
Developer
peter9477
Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10
My Carrier: none

Re: JSON support for Playbook development

John, do you really mean you doubt we'll see AIR 3 in the 2.0 release?

Peter Hansen -- (BB10 and dev-related blog posts at http://peterhansen.ca.)
Author of White Noise and Battery Guru for BB10 and for PlayBook | Get more from your battery!
Please use plain text.
Developer
jtegen
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10
My Carrier: Verizon

Re: JSON support for Playbook development

That we wont see a JSON API in the QNX library.
Please use plain text.
Developer
peter9477
Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10
My Carrier: none

Re: JSON support for Playbook development


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.


Peter Hansen -- (BB10 and dev-related blog posts at http://peterhansen.ca.)
Author of White Noise and Battery Guru for BB10 and for PlayBook | Get more from your battery!
Please use plain text.
Developer
shawnblais
Posts: 439
Registered: ‎10-25-2010
My Device: Not Specified

Re: JSON support for Playbook development

[ Edited ]

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();

Please use plain text.
Developer
jtegen
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10
My Carrier: Verizon

Re: JSON support for Playbook development

Thanks for the heads up!
Please use plain text.