Why am I unable to load json from QML only?

I'm trying to use the example found under JsonDataAccess (https://developer.blackberry.com/cascades/reference/bb__data__jsondataaccess.html) to load a json file into a GroupDataModel using only QML. It doesn't load and I'm not sure how determine why it is failing. Can somebody provide some insight as to why this doesn't work for me? Could you explain how to figure out and debug what is wrong when you are just using QML? All I see is a white screen.

Here is my main.qml:

import bb.cascades 1.0

import bb.data 1.0

Page {

content: ListView {

id: listView

dataModel: dataModel

listItemComponents: [

ListItemComponent {

type: "item"

Label {

text: ListItemData.title

}

}

]

}

attachedObjects: [

GroupDataModel {

id: dataModel

},

DataSource {

id: dataSource

source: "testdata.json"

onDataLoaded: {

dataModel.insertList(data)

}

}

]

onCreationCompleted: {

dataSource.load();

}

}

Here is my testdata.json, which is located under the assets directory along with the main.qml file:

Re: Why am I unable to load json from QML only?

I'm not sure what you mean by "Did you registered DataSource to qml?" Can you explain in more detail? The code you see above is from the example. That is all that I did in my test of this functionality.