Jansson is a C library for working with JSON: parsing, generating, and manipulating values in memory. It uses a simple API, UTF-8 Unicode, and no mandatory third-party dependencies.
Overview
Jansson is a C library focused on encoding, decoding, and manipulating JSON data. It exposes a simple API and data model for building and traversing JSON values from application code.
Design goals highlighted in the documentation include comprehensive reference material, independence from other libraries, full UTF-8 Unicode support, and broad test coverage. It is distributed under the MIT license.
Developers link Jansson into programs that need to read configuration files, talk to HTTP APIs, or persist structured data as JSON. Official HTML documentation is published separately from the source tree, and can also be generated locally from the included documentation sources.
The project maintains issue tracking and community resources for questions and development notes. Installation follows standard autotools or CMake workflows when building from a release tarball or checked-out sources.
Key features
- JSON encode and decode in C
- Simple intuitive API and data model
- No required external library dependencies
- Full UTF-8 Unicode support
- Published and buildable documentation
- Autotools and CMake build support
Use cases
- Parsing JSON in C applications
- Generating JSON for APIs or config files
- Manipulating JSON trees in native code
- Embedded or server software without heavy deps
- Projects needing a small dedicated JSON library