wrap-json: add unpacking tool for json
authorJosé Bollo <jose.bollo@iot.bzh>
Thu, 27 Jul 2017 13:55:45 +0000 (15:55 +0200)
committerJosé Bollo <jose.bollo@iot.bzh>
Thu, 27 Jul 2017 14:58:01 +0000 (16:58 +0200)
commit69a85a68b5883bd97eb662372acb68af137dda7f
treeb3fda676868682d467960318ac141f9d1c906d82
parent4a3d0c568ec5ee1296f4a50f269a1eadc4898e27
wrap-json: add unpacking tool for json

The functions wrap_json_unpack, wrap_json_vunpack,
wrap_json_check, wrap_json_vcheck, wrap_json_match and
wrap_json_vmatch can be used to get items in a json
object.

These functions are likely to be compatible in the
format with the unpacking functions of the library
jansson [1].

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

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