GithubHelp home page GithubHelp logo

json-spirit's Introduction

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

json-spirit's People

Contributors

ewencp avatar jterrace avatar danielrh avatar tahirazim avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.