how to integrate Qjson in qt window application, windows 64 bit system ?
-
how to integrate Qjson in qt window application, windows 64 bit system ?
downloaded qjson-0.8.1 and tried to compile it using cmake-3.8.1-win64-x64 but not succeed getting
CMake Error at C:/Program Files/CMAKE_3_8/share/cmake-3.8/Modules/FindQt4.cmake:1318 (message):
Found unsuitable Qt version "5.8.0" from
C:/Qt/5.8/mingw53_32/bin/qmake.exe, this code requires Qt 4.x
Call Stack (most recent call first):
CMakeLists.txt:35 (FIND_PACKAGE)
error please help -
hi
That lib seems a bit dated.Why not use the build in , ready to use json that are in Qt already ?
http://doc.qt.io/qt-5/json.html -
hey @mrjj thanks for reply can you tell me how to implement qt own's json and how to use that ?
and documentation would help more
-
Hi
Look at the game sample
http://doc.qt.io/qt-5/qtcore-json-savegame-example.htmlIts a real life example of saving / loading.
-
Hello,
I can also recommend my brothers JSON library; JsonWax ( https://doublejim.github.io )
You just have to include one header file, and it features build-in save/load, very easy read/update of values, and serialization. He has done a ton of tests, and it is ready for use.
It has been tested with Qt 5.7.1 on Linux with GCC 5.4, and with Qt 5.8.0 on Windows 7 64 bit - both MingW and MSVC compiler.
There are decent documentation, but some things still could use a better explanation in my opinion.
The documentation has been updated, and is now in great shape :-) Take a look at the "Getting started" section. -
@uniqueidentifier thanks for recommandation i will sure look into it .
-
You are welcome :-)
Let me know if you have any troubles using it, or questions about it.
I have used it almost everyday lately - and it has been such a pleasure, since I really understood how to use it.
-
@uniqueidentifier Hello could you help me regarding that library. I just started using it, it is very good, the problem is that the json sorts it alphabetically and that causes me problems. Know how not to order it alphabetically?
-
@Gabriela20 said in how to integrate Qjson in qt window application, windows 64 bit system ?:
Know how not to order it alphabetically?
Since json has no order - no.
-
@Christian-Ehrlicher I did not formulate my question correctly hehe the user mentioned, I am talking about another jsonwax tool, I was referring to that library
-
@Gabriela20 said in how to integrate Qjson in qt window application, windows 64 bit system ?:
the problem is that the json sorts it alphabetically and that causes me problems
We don't know about your "JsonWax" library, that's for you to look up. But as @Christian-Ehrlicher has said JSON itself is "unordered" when serializing to string. The point anyway is that you should not "have problems" regardless of the order.