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: 83
Registered: ‎02-18-2013
My Device: Blackberry 10
My Carrier: airtel

Json parse in cpp with out create .json file in blackberry cascade?

[ Edited ]

From url JSON array returns . That value want to show in QML list view.

 

Please help me.....

Developer
Posts: 713
Registered: ‎05-31-2010
My Device: 8520
My Carrier: Movistar

Re: Json parse in cpp with out create .json file in blackberry cascade?

Highlighted
Developer
Posts: 96
Registered: ‎06-05-2012
My Device: Developer
My Carrier: Developer

Re: Json parse in cpp with out create .json file in blackberry cascade?

Hi,

You can use below two line it will return QVarient from QString respone.
QVarient response_data;
JsonDataAccess jsonDataAccess;
response_data = jsonDataAccess.loadFromBuffer(response);
QVarientList list_data = response_data.toList();

Thanks & Regards,
Anand Sharma.