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
anphorea
Posts: 134
Registered: ‎11-27-2012
My Device: Z10 LE,Dev Alpha C
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

/*
WebWorks Developer
*/
Developer
gyubok
Posts: 520
Registered: ‎10-08-2009
My Device: Bold 9900

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.

 

 

Developer
gyubok
Posts: 520
Registered: ‎10-08-2009
My Device: Bold 9900

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?

Developer
anphorea
Posts: 134
Registered: ‎11-27-2012
My Device: Z10 LE,Dev Alpha C

Re: about json via http

Yeah, I got it,thanks.
/*
WebWorks Developer
*/