JSON parsing with QtJson...
Moved
Solved
General and Desktop
-
@aha_1980 Hello, I start to read yes, I'm trying to understand how do that in js, I found documentation on QJsonArray only for c++ at the moment
In JS you just parse it, as it's a natively supported.
var myJson = JSON.eval(jsonText);
If it's a valid json, then properties are available directly as any other java script object, or in your case:
var obj =JSON.parse(res); console.log("Latitude: " + obj.aircraft[0].geography.latitude);
I still don't get the relevance, though.