How parse json array in qt
-
wrote on 4 Aug 2013, 06:59 last edited by
Thanks but I am not using Qt's Json parser. I am using third party json code to parse the json data. You could see that in the code as well.
-
wrote on 4 Aug 2013, 07:08 last edited by
It's better to use the standard way. Anyway, you can use whatever method you like, if you know it well.
-
wrote on 4 Aug 2013, 08:59 last edited by
[quote author="dlfo" date="1375600100"]It's better to use the standard way. Anyway, you can use whatever method you like, if you know it well.[/quote]
I agree. It is always better to rely on the standard tools and API for such operations.
-
wrote on 4 Aug 2013, 18:31 last edited by
ok noted but can somebody plz point out what is wrong in the code?
thanks
-
wrote on 5 Aug 2013, 10:17 last edited by
Does anyone if there is anything wrong with this code? I can't parse all the elements out of it.
-
wrote on 5 Aug 2013, 11:31 last edited by
One problem is that the author needs to practice some patience. Please allow at least 48 hours for people to respond, some would argue a week to be reasonable.
-
wrote on 5 Aug 2013, 11:47 last edited by
ok.
I got it solved myself. Actually each member inside QList<QVariant> needs to be converted into a QMap first and then separate out the key-value pairs.
Thanks guys
-
wrote on 17 Apr 2014, 06:37 last edited by
Hello raj ,
i am using Json in Application, so I need JSON parser can you tell me which parser you are using?
i am using qt 4.8 on windows 7.
compiler :- MSVCthanks
-
wrote on 18 Apr 2014, 12:59 last edited by
"QJsonDocument":http://qt-project.org/doc/qt-5/qjsondocument.html ?
-
wrote on 19 Apr 2014, 06:06 last edited by
hi qxoz,
QJsonDocument is the part of Qt 5.2My setup is Qt4.8 and Win 7,MSVC compiler
So, Could you tell me for that ?
thanks :) -
wrote on 19 Apr 2014, 13:36 last edited by
I guess the thread author used this lib: http://qjson.sourceforge.net/
I think that is the best choice if you can't switch to Qt 5.