JSON classes in Qt vs other JSON parsers in C++ -
I am developing a server / client application in C ++ and using QT to use my IDE, As well as in some of its libraries. Performance-wise I was told that one of the best ways to transfer data between a server and client was through JSON. However, I want to know the performance difference between default classes (for example JSON ++) such as Q (QJsonArray, QJsonObject .. etc) and other C ++ parsers to parse JSON in QT.
If the QT classes are not performing enough, then you can see Rapidjan:
Comparison of Performance:
Good thing Rapidjson (different from its speed) is easy installation and use. From your website:
rapidjson is a header-only library, that means, there is only one thing that you can copy Rapidson / Include / Rapidson and its sub-directory to the project or Other paths can include.
and also from their wiki page:
#include "fastjson / document.h" #include & lt; Cstdio & gt; Int main () {const char json [] = "{\" Hello \ ": \" world \ "}"; Rapidjson :: Document d; D.Parse & LT; 0 & gt; (JSON); Printf ("% s \ n", D ["Hello"]. GetString ()); Return 0; }
Comments
Post a Comment