wrap-json: Add clone facility 29/14129/3
authorJosé Bollo <jose.bollo@iot.bzh>
Tue, 29 May 2018 08:10:27 +0000 (10:10 +0200)
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Thu, 7 Jun 2018 07:46:59 +0000 (07:46 +0000)
commit98c64eae99425fb44d96d6775d6cde3d0058cf6d
tree6098bcaf30410df7d475e1d5586696fdb05f47db
parent5ae2a7a90dab46cb862005191f379a24618b7215
wrap-json: Add clone facility

This adds 3 new facilities:

 - wrap_json_clone: clones any json object superficially
 - wrap_json_clone_deep: clones any json object deeply
 - wrap_json_add: adds to an object the fields of an other object

Change-Id: I3844d972aa6477c9dde6f66ad0b0604284a853a7
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
wrap-json.c
wrap-json.h
wrap-json.test.result