Registry / serialization / jansson

jansson

JSON →
library2.15.0vcpkgunverified

Jansson is a C library for encoding, decoding and manipulating JSON data.

vcpkg install jansson
INSTALL
IMPORT
SIG · JANSSON
J
jansson
serializationcppv2.15.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

jansson.h
#include <jansson.h>

Minimal example creating a JSON object and printing it.

#include <jansson.h> #include <stdio.h> int main() { json_t *json = json_object(); json_object_set_new(json, "key", json_string("value")); char *dump = json_dumps(json, JSON_INDENT(2)); printf("%s\n", dump); free(dump); json_decref(json); return 0; }
Debug
Known issues
gotchaJansson is a C library; using it in C++ requires careful memory management (manual json_decref).
fix
Use RAII wrappers or ensure every json_t* is properly decref'd.
affects: *
Upgrade
Version history
2.15.0latest on vcpkg
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources

No resource links recorded.

jansson — pip install jansson · libregistry