Name Description Size
arraylist.c STDC_HEADERS 5548
arraylist.h @file @brief Internal methods for working with json_type_array objects. Although this is exposed by the json_object_get_array() method, it is not recommended for direct use. 2592
AUTHORS 2709
ChangeLog 29076
cmake
COPYING 2205
debug.c HAVE_SYSLOG_H 1442
debug.h @file @brief Do not use, json-c internal, may be changed or removed at any time. 2703
json.h.cmakein 826
json_c_version.c 363
json_c_version.h @file @brief Methods for retrieving the json-c version. 1368
json_inttypes.h @file @brief Do not use, json-c internal, may be changed or removed at any time. 675
json_object.c Avoid ctype.h and locale overhead 49803
json_object.h @file @brief Core json-c API. Start here, or with json_tokener.h 44516
json_object_iterator.c How It Works For each JSON Object, json-c maintains a linked list of zero or more lh_entry (link-hash entry) structures inside the Object's link-hash table (lh_table). Each lh_entry structure on the JSON Object's linked list represents a single name/value pair. The "next" field of the last lh_entry in the list is set to NULL, which terminates the list. We represent a valid iterator that refers to an actual name/value pair via a pointer to the pair's lh_entry structure set as the iterator's opaque_ field. We follow json-c's current pair list representation by representing a valid "end" iterator (one that refers past the last pair) with a NULL value in the iterator's opaque_ field. A JSON Object without any pairs in it will have the "head" field of its lh_table structure set to NULL. For such an object, json_object_iter_begin will return an iterator with the opaque_ field set to NULL, which is equivalent to the "end" iterator. When iterating, we simply update the iterator's opaque_ field to point to the next lh_entry structure in the linked list. opaque_ will become NULL once we iterate past the last pair in the list, which makes the iterator equivalent to the "end" iterator. 4578
json_object_iterator.h Forward declaration for the opaque iterator information. 8394
json_object_private.h @file @brief Do not use, json-c internal, may be changed or removed at any time. 2207
json_patch.c To avoid confusion 9382
json_patch.h @file @brief JSON Patch (RFC 6902) implementation for manipulating JSON objects 2455
json_pointer.c Avoid ctype.h and locale overhead 8870
json_pointer.h @file @brief JSON Pointer (RFC 6901) implementation for retrieving objects from a json-c object tree. 4532
json_pointer_private.h @file @brief Do not use, json-c internal, may be changed or removed at any time. 1323
json_tokener.c HAVE_LOCALE_H 37252
json_tokener.h @file @brief Methods to parse an input string into a tree of json_object objects. 10522
json_types.h @file @brief Basic types used in a few places in json-c, but you should include "json_object.h" instead. 1666
json_util.c HAVE_SYS_TYPES_H 6901
json_util.h @file @brief Miscllaneous utility functions and macros. 3920
json_visit.c 3981
json_visit.h @file @brief Methods for walking a tree of objects. 3175
libjson.c dummy source file for compatibility purposes 603
linkhash.c attempt to define endianness 21291
linkhash.h @file @brief Internal methods for working with json_type_object objects. Although this is exposed by the json_object_get_object() function and within the json_object_iter type, it is not recommended for direct use. 12380
math_compat.h @file @brief Do not use, json-c internal, may be changed or removed at any time. 898
moz.build 2030
moz.yaml 839
printbuf.c !HAVE_STDARG_H 4174
printbuf.h @file @brief Internal string buffer handling. Unless you're writing a json_object_to_json_string_fn implementation for use with json_object_set_serializer() direct use of this is not recommended. 4353
random_seed.c cpuid 6819
random_seed.h @file @brief Do not use, json-c internal, may be changed or removed at any time. 506
README.html JSON-C - A JSON implementation in C 1782
README.md \mainpage 12713
snprintf_compat.h @file @brief Do not use, json-c internal, may be changed or removed at any time. 991
strdup_compat.h @file @brief Do not use, json-c internal, may be changed or removed at any time. 363
strerror_override.c Override strerror() to get consistent output across platforms. 2307
strerror_override.h @file @brief Do not use, json-c internal, may be changed or removed at any time. 509
vasprintf_compat.h @file @brief Do not use, json-c internal, may be changed or removed at any time. 1247