JSON Serialization using Boost.Spirit
C++ C
Latest commit 4f1a102 Dec 2, 2013 @ewencp ewencp Convert Travis-CI config to use proper C++ environment.
There's now a proper C++ environment for Travis-CI, so update to use
it. Most of the configuration is the same, but we can specify use of
both GCC and clang directly. Also, update the dependencies
installation to only install the two Boost libraries we need -- system
and thread.
Permalink
Failed to load latest commit information.
build
demo
doc Hide some implementation classes from the documentation. Feb 23, 2012
include/json_spirit Fix double handling, getting rid of unnecessary precision and trailin… Dec 1, 2013
src
test
.gitignore
.travis.yml
LICENSE
README.md

README.md

JSON Spirit

JSON Spirit is a C++ JSON library using Boost Spirit for parsing.

This version is modified for use with Sirikata.

Compiling & Using

To build and install the library independently of another project, use the normal cmake procedure:

cd json-spirit/build
# Run CMake and check output for errors.
cmake . [-DCMAKE_INSTALL_PREFIX=/path/to/install]
make
# Run some tests
./json_test
# Optionally install
make install

To use JSON Spirit within another CMake-based project, you can add a command like the following to your CMakeLists.txt:

ADD_SUBDIRECTORY(/path/to/json-spirit/build ${CMAKE_CURRENT_BINARY_DIR}/json-spirit)

This adds the json-spirit build as a subdirectory of your project. You can use the json-spirit targets (e.g. json_spirit, json_test) in your own CMake commands.

There are a couple of CMake settings which control which components are built:

JSON_SPIRIT_LIBRARY_TYPE - set to STATIC or SHARED
JSON_SPIRIT_BUILD_DEMOS - set to FALSE to disable demos
JSON_SPIRIT_BUILD_TESTS - set to FALSE to disable tests

Documentation

Hosted documentation: http://sirikata.github.com/json-spirit/

You can generate documentation from the source code using doxygen:

doxygen doc/Doxyfile

The output will be placed in doc/[type], e.g. doc/html if you generated HTML documentation (the default).

Buildbot

Build Status

References

The original code for JSON Spirit can be found at: http://www.codeproject.com/Articles/20027/JSON-Spirit-A-C-JSON-Parser-Generator-Implemented