Skip to content
Please note that GitHub no longer supports your web browser.

We recommend upgrading to the latest Google Chrome or Firefox.

Learn more
C library for encoding, decoding and manipulating JSON data
C CMake Shell Makefile C++ M4
Branch: master
Clone or download
akheron Merge pull request #510 from AllenX2018/improve-build-doc
add MinGW build guideline and tips to disable building docs
Latest commit ca88677 Oct 24, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
android Update copyrights for 2016 Sep 18, 2016
cmake Merge pull request #502 from AllenX2018/fix-issue453 Oct 17, 2019
doc Merge pull request #510 from AllenX2018/improve-build-doc Oct 24, 2019
examples Tweak clang-format configuration a bit Oct 21, 2019
scripts Fix clang-format version checking Oct 21, 2019
src
test Run clang-format with make check Oct 21, 2019
.clang-format Tweak clang-format configuration a bit Oct 21, 2019
.gitignore Run clang-format with make check Oct 21, 2019
.travis.yml Fix clang-format version checking Oct 21, 2019
Android.mk Android.mk: Add -DHAVE_STDINT_H to LOCAL_CFLAGS Jul 31, 2014
CHANGES
CMakeLists.txt Fix various typos Sep 20, 2019
CleanSpec.mk
LICENSE
Makefile.am Run clang-format with make check Oct 21, 2019
README.rst Add vcpkg installation instructions Sep 26, 2019
appveyor.yml Also build with VS 2017 in appveyor May 7, 2018
configure.ac Set autoconf bug-report param to point to github issues Oct 21, 2019
jansson.pc.in
release.sh Compress bz2 doc tarballs with bzip2 instead of gzip Jan 6, 2013

README.rst

Jansson README

https://travis-ci.org/akheron/jansson.png https://ci.appveyor.com/api/projects/status/lmhkkc4q8cwc65ko https://coveralls.io/repos/akheron/jansson/badge.png?branch=master

Jansson is a C library for encoding, decoding and manipulating JSON data. Its main features and design principles are:

  • Simple and intuitive API and data model
  • Comprehensive documentation
  • No dependencies on other libraries
  • Full Unicode support (UTF-8)
  • Extensive test suite

Jansson is licensed under the MIT license; see LICENSE in the source distribution for details.

Compilation and Installation

You can download and install Jansson using the vcpkg dependency manager:

git clone https://github.com/Microsoft/vcpkg.git
cd vcpkg
./bootstrap-vcpkg.sh
./vcpkg integrate install
vcpkg install jansson

The Jansson port in vcpkg is kept up to date by Microsoft team members and community contributors. If the version is out of date, please create an issue or pull request on the vcpkg repository.

If you obtained a source tarball from the "Releases" section of the main site just use the standard autotools commands:

$ ./configure
$ make
$ make install

To run the test suite, invoke:

$ make check

If the source has been checked out from a Git repository, the ./configure script has to be generated first. The easiest way is to use autoreconf:

$ autoreconf -i

Documentation

Documentation is available at http://jansson.readthedocs.io/en/latest/.

The documentation source is in the doc/ subdirectory. To generate HTML documentation, invoke:

$ make html

Then, point your browser to doc/_build/html/index.html. Sphinx 1.0 or newer is required to generate the documentation.

You can’t perform that action at this time.