aboutsummaryrefslogtreecommitdiff
path: root/doc
AgeCommit message (Collapse)AuthorFilesLines
2022-08-09Add a missing json_decref in the examplePetri Lehtinen1-0/+1
2021-09-09jansson 2.14v2.14Petri Lehtinen4-9/+9
2020-11-19doc: Hoist a sectionPetri Lehtinen1-1/+1
2020-11-19doc: Rename "Portability" to "Thread-safety"Petri Lehtinen3-10/+6
Fixes #545
2020-09-01conformance: remove U+0000 restriction for object keysMaxim Zhukov1-2/+1
Signed-off-by: Maxim Zhukov <mussitantesmortem@gmail.com>
2020-09-01introduce new fixed-size key APIMaxim Zhukov1-3/+157
This commit added functions working with fixed-size strings (non null-terminated also). It's helpful for the following cases: * getting key from substring without copying to separate buffer (better perfomance) * using pure UTF-8 keys for the objets * hack: set binary structs as the keys (see test_binary_keys) added functions: * json_object_getn * json_object_setn * json_object_setn_nocheck * json_object_setn_new * json_object_setn_new_nocheck * json_object_deln * json_object_iter_key_len added iterators: * json_object_keylen_foreach * json_object_keylen_foreach_safe Signed-off-by: Maxim Zhukov <mussitantesmortem@gmail.com>
2020-08-09Fix couple of typosi-ky1-2/+2
"This sections describes" -> "This section describes"
2020-08-08Lift "Depth of nested values" to a higher leveli-ky1-1/+1
Currently this section is under "Numbers" which seems to be wrong.
2020-08-07doc: add return types for function-like macrosPierce Lopez1-13/+13
The Sphinx-3.0 c:function:: directive requires the return type. Sphinx-3.0 also adds function-like macro support to the c:macro:: directive, which Sphinx-1.x and Sphinx-2.x do not support, but it is probably a good idea to keep compatibility with slightly older Sphinx for now.
2020-08-07doc: do not use references for standard C types or file namesPierce Lopez2-18/+18
Use double-backtick quoting instead. It has the same effect (because these links had nowhere to link to) but it does not result in loud warnings about broken references by default with Sphinx-3.x.
2020-08-07doc: convert refcounting directive to a classPierce Lopez1-11/+20
Directive functions are no longer supported in Sphinx-3.0 but directive classes have been supported since early 1.x
2020-05-07jansson 2.13.1v2.13.12.13Petri Lehtinen1-1/+1
2020-05-05jansson 2.13v2.13Petri Lehtinen1-2/+2
2020-01-21Update apiref.rstNan Xiao1-1/+1
2019-10-24Merge pull request #510 from AllenX2018/improve-build-docPetri Lehtinen1-0/+21
add MinGW build guideline and tips to disable building docs
2019-10-24Fix the length of a section headingPetri Lehtinen1-1/+1
2019-10-21add MinGW build guideline, add new version of Visual StudioAllenX20181-0/+21
2019-10-21Tweak clang-format configuration a bitPetri Lehtinen1-12/+7
Set ColumnLimit to 90, remove AllowShortCaseLabelsOnASingleLine.
2019-10-21Run clang-format on *.c, *.hPetri Lehtinen1-55/+39
2019-10-17Merge branch 'master' into fix-issue281Petri Lehtinen2-2/+12
2019-10-17Merge pull request #505 from AllenX2018/recursive_object_updatePetri Lehtinen1-0/+6
Recursive object update
2019-10-17Merge pull request #503 from AllenX2018/loadfd-docPetri Lehtinen1-1/+5
add note for non-blocking file descriptor used for json_loadfd
2019-10-12modify some wordsallen1-5/+5
2019-10-11Add json_object_update_recursive()Henrique Cabral1-0/+6
Support merging values nested within objects. For instance, merging: { "foo": 1, "bar": { "baz": 2 } } with { "bar": { "baz": 3 } } results in { "foo": 1, "bar": { "baz": 3 } } instead of overwriting the value for the bar key.
2019-10-10add note for non-blocking file descriptor used for json_loadfdallen1-1/+5
2019-10-08fix issue #281allen1-0/+18
2019-09-23Merge pull request #494 from luzpaz/typosPetri Lehtinen1-1/+1
Fix various typos
2019-09-20Fix various typosluz.paz1-1/+1
Found via `codespell -q 2` (v1.17.0.dev0)
2019-09-18Update apiref.rstAllen1-1/+3
fix the documentation about json_dumps. refs #471
2019-03-12Add runtime version checking functionsSean Bright1-0/+19
This patch adds two new exported functions: * `jansson_version_str` - Returns a human-readable version number * `jansson_version_cmp` - 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.
2018-11-25jansson 2.12Corey Farrell1-1/+1
2018-05-07Update build instructions for Visual StudioPetri Lehtinen1-1/+16
2018-02-09jansson 2.11Corey Farrell1-1/+1
2018-02-09Merge pull request #395 from akheron/doc-utf-8Petri Lehtinen1-3/+15
Document encoding requirements for callbacks
2018-02-09Merge pull request #380 from phst/doc-error-codePetri Lehtinen1-0/+4
document that json_error_code will be added in version 2.11
2018-02-09Document encoding requirements for callbacksdoc-utf-8Petri Lehtinen1-3/+15
Original patch by @phst. Fixes #369.
2018-02-09Add json_sprintf and json_vsprintfjson_sprintfPetri Lehtinen1-0/+10
Fixes #392
2018-02-08Clarify thread safety docs, rename JANSSON_THREAD_SAFEthreadsafetyPetri Lehtinen2-14/+26
2018-02-01Docs: Update information on thread safety.Corey Farrell2-17/+12
Fixes #387
2017-12-18document that json_error_code will be added in version 2.11Philipp Stephani1-0/+4
2017-12-13apiref: Clarify documentation for unpack `O` format.Corey Farrell1-1/+4
The `O` format causes reference counts to increase, but in an error they are not released. Callers to unpack functions that use the `O` format should use pointers pre-initialized to NULL so they can safely release the reference on error. Also corrected typo which said this was like `O` (itself). Fixes #135
2017-12-10Document that length-aware string functions have been added in 2.7Philipp Stephani1-0/+10
2017-10-03Use last byte of error text as numeric error codePhilipp Stephani1-0/+90
Fixes #352
2017-07-16Fix typo최재원1-2/+2
2017-04-19Enable optional object/array members in json_pack()Nathaniel McCallum1-1/+22
2017-03-02jansson 2.10v2.10Nathaniel McCallum1-1/+1
2017-02-27Add JSON_EMBED encoding flagNathaniel McCallum1-0/+7
The JSON_EMBED encoding flag causes the opening and closing characters of the top-level array ('[', ']') or object ('{', '}') to be omitted during encoding. This feature makes it possible to concatenate multiple arrays or objects in the stream output. It also makes it possible to perform outputs of partial composes. One such example of a partial compose is when outputting a JWE object. The output is a JSON object. But it has one top-level attribute ("ciphertext") that can grow out of proportion with the rest of the metadata. With the JSON_EMBED flag, the other metadata can be composed ahead of time and dumped during the beginning of output, where the "ciphertext" and "tag" attributes can be streamed out in chunks. Thus, the header material can be composed with Jansson and the ciphertext itself can be composed manually.
2017-01-27Implement json_dumpfd() and json_loadfd()Nathaniel McCallum1-1/+47
The primary use of these functions is easy loading and dumping from stream sockets. Signed-off-by: Nathaniel McCallum <npmccallum@redhat.com>
2017-01-26Implement json_dumpb()Nathaniel McCallum1-0/+22
This function encodes the json_t object to a pre-allocated buffer. It compliments the already existing json_loadb() function and is useful for parsing JSON-RPC (among other protocols) when sent over datagram sockets. Signed-off-by: Nathaniel McCallum <npmccallum@redhat.com>
2016-09-18doc: Change version to 2.10-devPetri Lehtinen1-1/+1