As in topic, I'm trying to parse this json data in to my QML project
link: http://www.rad.io/info/menu/valuesofcategory?category=_genre
So I have list of 188 elements but don't know how to get value of each element...
here is a link to JSONListModel component I used in this example
here is qml code:
import QtQuick 2.0
import Ubuntu.Components 1.1
import "../components"
import Ubuntu.Components.ListItems 1.0 as ListItem
Page {
title: i18n.tr("by Genre")
JSONListModel {
id: json
source: "http://www.rad.io/info/menu/valuesofcategory?category=_genre"
query: "$"
}
UbuntuListView {
height: parent.height
width: parent.width
clip: true
model: json.model
cacheBuffer: contentHeight
delegate: ListItem.Standard {
text: index + " " + indexValue
}
}
}