Jansson Documentation ¶ This is the documentation for Jansson 2.15.0, last updated . Introduction ¶ 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 ...
Edit jansson_config.h.in, replacing all @variable@ placeholders, and rename the file to jansson_config.h. Make jansson.h and jansson_config.h available to the compiler, so that they can be found when compiling programs that use Jansson.
int jansson_version_cmp(int major, int minor, int micro) ¶ Returns an integer less than, equal to, or greater than zero if the runtime version of Jansson is found, respectively, to be less than, to match, or be greater than the provided major, minor, and micro. Added in version 2.13.
Tutorial In this tutorial, we create a program that fetches the latest commits of a repository in GitHub over the web. GitHub API uses JSON, so the result can be parsed using Jansson. To stick to the scope of this tutorial, we will only cover the parts of the program related to handling JSON data. For the best user experience, the full source code is available: github_commits.c. To compile it ...
Jansson Documentation ¶ This is the documentation for Jansson 2.13.1, last updated .
Make jansson.h and jansson_config.h available to the compiler, so that they can be found when compiling programs that use Jansson. Compile all the .c files (in the src/ directory) into a library file. Make the library available to the compiler, as in step 2.