wrap-json: new helper functions for comparison
authorjobol <jose.bollo@iot.bzh>
Mon, 11 Jun 2018 12:28:01 +0000 (14:28 +0200)
committerRomain Forlot <romain.forlot@iot.bzh>
Thu, 13 Dec 2018 13:12:02 +0000 (14:12 +0100)
commit0f7c627d2db92fd0a83fd19131dbb496fc4194c6
tree71be9d4c10877f9acabffefea4c22315d620d4e3
parent91866ef916e1371413038013d5780eac3c6254bf
wrap-json: new helper functions for comparison

The new functions are

 - wrap_json_clone_depth: clone with defined depth
 - wrap_json_sort: sort an array accordingly to wrap_json_cmp
 - wrap_json_keys: compute the array of sorted keys
 - wrap_json_cmp: compare 2 items
 - wrap_json_equal: test equallity
 - wrap_json_contains: test inclusion

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