Age | Commit message (Collapse) | Author | Files | Lines |
|
|
|
|
|
|
|
Fixes #545
|
|
Signed-off-by: Maxim Zhukov <mussitantesmortem@gmail.com>
|
|
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>
|
|
"This sections describes" -> "This section describes"
|
|
Currently this section is under "Numbers" which seems to be wrong.
|
|
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.
|
|
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.
|
|
Directive functions are no longer supported in Sphinx-3.0
but directive classes have been supported since early 1.x
|
|
|
|
|
|
|
|
add MinGW build guideline and tips to disable building docs
|
|
|
|
|
|
Set ColumnLimit to 90, remove AllowShortCaseLabelsOnASingleLine.
|
|
|
|
|
|
Recursive object update
|
|
add note for non-blocking file descriptor used for json_loadfd
|
|
|
|
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.
|
|
|
|
|
|
Fix various typos
|
|
Found via `codespell -q 2` (v1.17.0.dev0)
|
|
fix the documentation about json_dumps. refs #471
|
|
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.
|
|
|
|
|
|
|
|
Document encoding requirements for callbacks
|
|
document that json_error_code will be added in version 2.11
|
|
Original patch by @phst.
Fixes #369.
|
|
Fixes #392
|
|
|
|
Fixes #387
|
|
|
|
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
|
|
|
|
Fixes #352
|
|
|
|
|
|
|
|
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.
|
|
The primary use of these functions is easy loading
and dumping from stream sockets.
Signed-off-by: Nathaniel McCallum <npmccallum@redhat.com>
|
|
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>
|
|
|