qjson

agentzh's fork of QJson, the Qt C++ parsing library for JSON data

LGPL-2.1 License

Stars
6

This is a fork of the QJson C++ Qt library by agentzh and xunxin.

This fork fixes the UTF-8 bugs and the not-so-natural build system with qmake. And we'd expect it to eventually merge back to the mainstream in the near future :)

Installation

$ qmake 'CONFIG-=debug' OUTPUT_DIR=/prefix/yqjson -r $ make $ make install

If you want to install to the system, specify OUTPUT_DIR=/usr/local explicitly in the first step.

The default value of OUTPUT_DIR is the current build directory.

For RPM/Debian packaging, one can specify a "DESTDIR" while installing, for instance,

$ make install INSTALL_ROOT=/home/agentz/rpm/BUILDROOT/qjson

The main motivation for this library is our VdomBrowser mainly for webpage information extraction based on VDOM:

http://github.com/agentzh/vdombrowser

Here comes the original README for the mainstream QJson:

QJson version 0.5.0

Date: April 3rd, 2009 Website: http://qjson.sourceforge.net/ Mailing List: https://lists.sourceforge.net/mailman/listinfo/qjson-devel

Project Lead/Maintainer (2008-current): Flavio Castelli [email protected]

Install

For installation or compiling instructions, see the INSTALL file.

License

This library is licensed under the Lesser GNU General Public License. See the COPYING file for more information.

Description

JSON (JavaScript Object Notation) is a lightweight data-interchange format. It can represents integer, real number, string, an ordered sequence of value, and a collection of name/value pairs.

QJson is a qt-based library that maps JSON data to QVariant objects. JSON arrays will be mapped to QVariantList instances, while JSON's objects will be mapped to QVariantMap.

Happy hacking Flavio