2009-08-03 02:26:37 +08:00
|
|
|
Jansson README
|
|
|
|
==============
|
|
|
|
|
2012-12-28 21:30:15 +08:00
|
|
|
.. image:: https://travis-ci.org/akheron/jansson.png
|
|
|
|
:target: https://travis-ci.org/akheron/jansson
|
2014-09-25 12:51:55 +08:00
|
|
|
|
|
|
|
.. image:: https://ci.appveyor.com/api/projects/status/lmhkkc4q8cwc65ko
|
|
|
|
:target: https://ci.appveyor.com/project/akheron/jansson
|
2012-12-28 20:27:31 +08:00
|
|
|
|
2014-12-15 14:14:57 +08:00
|
|
|
.. image:: https://coveralls.io/repos/akheron/jansson/badge.png?branch=master
|
|
|
|
:target: https://coveralls.io/r/akheron/jansson?branch=master
|
|
|
|
|
2009-08-03 02:26:37 +08:00
|
|
|
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
|
|
|
|
|
2016-04-28 12:04:00 +08:00
|
|
|
- `Comprehensive documentation`_
|
2009-10-20 02:55:21 +08:00
|
|
|
|
|
|
|
- No dependencies on other libraries
|
2009-08-03 02:26:37 +08:00
|
|
|
|
|
|
|
- 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
|
|
|
|
----------------------------
|
|
|
|
|
2018-11-25 15:29:14 +08:00
|
|
|
If you obtained a `source tarball`_ from the "Releases" section of the main
|
2018-11-25 15:27:23 +08:00
|
|
|
site just use the standard autotools commands::
|
2009-08-03 02:26:37 +08:00
|
|
|
|
2011-02-28 03:09:55 +08:00
|
|
|
$ ./configure
|
|
|
|
$ make
|
|
|
|
$ make install
|
|
|
|
|
|
|
|
To run the test suite, invoke::
|
|
|
|
|
|
|
|
$ make check
|
2009-08-03 02:26:37 +08:00
|
|
|
|
|
|
|
If the source has been checked out from a Git repository, the
|
2012-09-06 02:16:43 +08:00
|
|
|
./configure script has to be generated first. The easiest way is to
|
|
|
|
use autoreconf::
|
2009-08-03 02:26:37 +08:00
|
|
|
|
|
|
|
$ autoreconf -i
|
|
|
|
|
|
|
|
|
|
|
|
Documentation
|
|
|
|
-------------
|
|
|
|
|
2016-04-28 12:04:00 +08:00
|
|
|
Documentation is available at http://jansson.readthedocs.io/en/latest/.
|
2009-08-03 02:26:37 +08:00
|
|
|
|
2011-02-28 03:09:55 +08:00
|
|
|
The documentation source is in the ``doc/`` subdirectory. To generate
|
|
|
|
HTML documentation, invoke::
|
2009-08-03 02:26:37 +08:00
|
|
|
|
2011-02-28 03:09:55 +08:00
|
|
|
$ make html
|
2009-08-03 02:26:37 +08:00
|
|
|
|
2011-02-28 03:09:55 +08:00
|
|
|
Then, point your browser to ``doc/_build/html/index.html``. Sphinx_
|
|
|
|
1.0 or newer is required to generate the documentation.
|
2009-08-03 02:26:37 +08:00
|
|
|
|
|
|
|
|
|
|
|
.. _Jansson: http://www.digip.org/jansson/
|
2016-04-28 12:04:00 +08:00
|
|
|
.. _`Comprehensive documentation`: http://jansson.readthedocs.io/en/latest/
|
2009-08-03 02:26:37 +08:00
|
|
|
.. _`MIT license`: http://www.opensource.org/licenses/mit-license.php
|
2018-11-25 15:27:23 +08:00
|
|
|
.. _`source tarball`: http://www.digip.org/jansson#releases
|
2009-08-03 02:26:37 +08:00
|
|
|
.. _Sphinx: http://sphinx.pocoo.org/
|