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
turdidae
Posts: 15
Registered: ‎06-02-2012
My Device: BlackBerry 10 Dev Alpha
My Carrier: Play Poland

Sub list from JSON

Hi,

 

 

I've JSON file made as object (started with "{" with embedded lists like this one:

{
    "title": "My Title",
    "subtitle": "My Subtitle",
    "genres": [
        {
            "subsume": "Sub gen name",
            "name": "gen name"
        }
    ],
    "pages": "25",
    "kinds": [
        {
            "href": "Desc",
            "name": "Epic"
        }

    ],
    "parent": null,
    "children": []
}

 

Now I plan to make Page with tree Lists for genres,kinds,children. I use JsonDataAcess for parsing this object, but I have problem with making tree DataModels for those tree Lists as Q_PROPERTYS.

 

 

Any suggestions?

 

Thanks

Turdidae

Please use plain text.
Developer
greenback
Posts: 492
Registered: ‎10-17-2010
My Device: BlackBerry Z10, DAC

Re: Sub list from JSON

BUMP. I am also awaiting a tutorial or explanation how to parse a similarly structured JSON object (which is coming from my server), and to put the data in: 

 

1) A standard or custom list

 

BUMP 

BUMP

BUMP

BUMP

BUMP

 

 

Please use plain text.
Developer
kylefowler
Posts: 526
Registered: ‎05-17-2009
My Device: 9900
My Carrier: ATT

Re: Sub list from JSON

Look at the weather guesser sample. Its uses json to build lists.

Like all of my posts
Please use plain text.