JSONLoader reading from PHP
-
Hi all,
We have an application that reads JSON from an external file to fill a ListView. Our code is:
@ListView {
id: channelList
anchors.fill: parent
currentIndex: -1
JSONLoader {
url: ... //FILE
onLoaded: {
channelList.model = data
}
}
}@To test, we put a JSON file directly in the URL attribute. It works!
But when I changed to a PHP call to my server (that returns an echoToJson) it gives me nothing. I think we need to decode this JSON string somehow, but I don't know how.
Can you help me?
Regards,
Renato.