jansson/test/suites/api
Nathaniel McCallum b8bb078cc2 Add JSON_EMBED encoding flag
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-02-27 15:09:03 -05:00
..
check-exports check-exports test: Filter out symbols that start with an underscore 2013-02-05 12:48:38 +02:00
Makefile.am Enable gcc specific flags in tests correctly 2013-02-04 09:49:58 +02:00
run Update copyrights for 2016 2016-09-18 14:17:03 +03:00
test_array.c Update copyrights for 2016 2016-09-18 14:17:03 +03:00
test_copy.c Update copyrights for 2016 2016-09-18 14:17:03 +03:00
test_dump_callback.c Update copyrights for 2016 2016-09-18 14:17:03 +03:00
test_dump.c Add JSON_EMBED encoding flag 2017-02-27 15:09:03 -05:00
test_equal.c Update copyrights for 2016 2016-09-18 14:17:03 +03:00
test_load_callback.c Document and tweak json_load_callback() 2012-03-26 21:53:21 +03:00
test_load.c Implement json_dumpfd() and json_loadfd() 2017-01-27 09:15:18 +01:00
test_loadb.c Update copyrights for 2016 2016-09-18 14:17:03 +03:00
test_memory_funcs.c Conform to c89 2016-08-11 18:51:29 +03:00
test_number.c Update copyrights for 2016 2016-09-18 14:17:03 +03:00
test_object.c Update copyrights for 2016 2016-09-18 14:17:03 +03:00
test_pack.c Update copyrights for 2016 2016-09-18 14:17:03 +03:00
test_simple.c Update copyrights for 2016 2016-09-18 14:17:03 +03:00
test_unpack.c Update copyrights for 2016 2016-09-18 14:17:03 +03:00
util.h Update copyrights for 2016 2016-09-18 14:17:03 +03:00