PDA

View Full Version : how to parse json with QScriptEngine



DavidOrange
12th October 2010, 12:06
please tell me how to parse json with QScriptEngine, thanks!
I want to send message to server with json,but I do not parse json with qt
code in json.js like this:
---------------------------------------------------

{"notify":
{"list":
[
{
"applicationid":"test.app.com",
"displayname":"testing",
"iconpath":"c:\data\test.img",
"messages":5
}
]
}
}
-------------------------------------------

tbscope
12th October 2010, 12:22
Create a wrapper class that makes a few functions available to your script.