wrap-json: add packing tool for json
authorJosé Bollo <jose.bollo@iot.bzh>
Wed, 26 Jul 2017 18:02:13 +0000 (20:02 +0200)
committerJosé Bollo <jose.bollo@iot.bzh>
Thu, 27 Jul 2017 14:54:43 +0000 (16:54 +0200)
commit4a3d0c568ec5ee1296f4a50f269a1eadc4898e27
treeee383f144ed1eeb7b0b2a541157928586d496835
parentfee037ca12807a45527b78ca6bcffcdc9a7afabc
wrap-json: add packing tool for json

The functions wrap_json_pack and wrap_json_vpack
can be used to create json object. These functions
are likely to be compatible in the format with the
packing functions of the library jansson [1].

[1] http://jansson.readthedocs.io/en/2.10/apiref.html#building-values

Change-Id: I2e251bdb9b590ba55707c5a9ed60528cad927fb3
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
src/wrap-json.c [new file with mode: 0644]
src/wrap-json.h [new file with mode: 0644]