No Description

Girish Ramakrishnan 5ecb683b6a Don't build as app_bundle on Mac 6 years ago
benchmark 5ecb683b6a Don't build as app_bundle on Mac 6 years ago
src f4489c5c58 Compare with correct size in parseKeyword() 6 years ago
tests 5ecb683b6a Don't build as app_bundle on Mac 6 years ago
README 952fa938de Reflect the API changes in the README 7 years ago
TODO c045451332 Update TODO 7 years ago
json.pro e133515b22 Rework main.cpp into an autotest 7 years ago

README

This is a Qt JSON Parser and serializer.

The API is trivial:
JsonReader reader;
reader.parse(jsonString);
QVariant v = reader.result();

JsonWriter writer;
writer.stringify(v);
QString json = writer.result();

Compilation:
The code uses QLALR (in Qt respository. $QTDIR/util/qlalr). Just,
'qlalr json.g' produces the parser 'jsonparser.cpp'. This generated file is
checked into the respository for convenience, so that the user does
not need to build qlalr.

Using in external projects:
Just drop 3 files - src/json.cpp src/json.h src/jsonparser.cpp into your code.
Add json.cpp to SOURCES and you are good to go. jsonparser.cpp is included by
json.cpp so you should not add it to SOURCES. You may add json.h to HEADERS but
it's not necessary since it does not contains any mocable content.