b8bb078cc2
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. |
||
---|---|---|
.. | ||
check-exports | ||
Makefile.am | ||
run | ||
test_array.c | ||
test_copy.c | ||
test_dump_callback.c | ||
test_dump.c | ||
test_equal.c | ||
test_load_callback.c | ||
test_load.c | ||
test_loadb.c | ||
test_memory_funcs.c | ||
test_number.c | ||
test_object.c | ||
test_pack.c | ||
test_simple.c | ||
test_unpack.c | ||
util.h |