A 500LOC Qt4 no-bullshit JSON lib
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
COPYING.txt
README.md
jsonread.cpp
jsonreadwrite.h
jsonwrite.cpp
qvariantjson-lib.pro
qvariantjson-test.pro
tst_jsonread.cpp
tst_jsonwrite.cpp

README.md

qvariantjson is yet another QVariant to JSON and JSON to QVariant implementation.

Advantages:

  • Public domain
  • Easy to use, 500 lines of code, with no JsonParserFactoryFactory bullshit
  • For Qt4
  • Able to report JSON parsing errors
  • 150 lines of test code, also testing parse errors
  • Handles 64bits integers (unsigned and signed) and double-precision floats

Disadvantages:

  • For API simplicity, parses JSON's "null" and "false" as QVariant(false)
  • Uses QVariant::toString() on custom types
  • No warranty

You can just copy-paste the .cpp/.h files in your project, or you can use qvariantjson as a lib if you insist.