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

Native Development

Reply
Developer
Posts: 141
Registered: ‎11-27-2012
My Device: Z10 LE,Dev Alpha C
My Carrier: China Mobile
Accepted Solution

about json via http

Sorry,new Cascaded developer

 

is there any document on json data via http access ?

 

I've found some cpp files when creating webworks extensions but don't know how to use them.

 

Thanks

BlackBerry Cascades / WebWorks developer, Vendor name: anpho
Developer
Posts: 654
Registered: ‎10-08-2009
My Device: Bold 9900
My Carrier: Telus

Re: about json via http

You can use JsonDataAccess class, QVariantList, QVariantMap, QVariant to access JSON file structure : https://developer.blackberry.com/native/documentation/cascades/device_platform/data_access/working_w...

 

Once you set your JSON to QVariantList, there are lot of threads in this forum which have excellent explanations on how to access the child elements and properties.

 

 

----------------------------------------------------------
Twitter: @gyubok
Developer
Posts: 654
Registered: ‎10-08-2009
My Device: Bold 9900
My Carrier: Telus

Re: about json via http

On the second thought, I think I've misunderstood your question. What exactly are you trying to achieve? Retrieve JSON via HTTP? Parsing JSON received via HTTP?

----------------------------------------------------------
Twitter: @gyubok
Developer
Posts: 141
Registered: ‎11-27-2012
My Device: Z10 LE,Dev Alpha C
My Carrier: China Mobile

Re: about json via http

Yeah, I got it,thanks.
BlackBerry Cascades / WebWorks developer, Vendor name: anpho