aboutsummaryrefslogtreecommitdiffstats
path: root/wrap-json.h
AgeCommit message (Collapse)AuthorFilesLines
2019-10-09Add function to add one json array to another oneicefish_8.99.1icefish/8.99.18.99.1Jonathan Aillet1-0/+2
Add a function to add one json array to another one. The json array to add can be inserted at any place of the json array to complete using 'idx' parameter. Also, correct minor mistake in 'wrap_json_object_add' description. BUG-AGL: SPEC-2867 Change-Id: I8936f298a4499f265646a75584d7fe6b29700513 Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2018-12-13wrap-json: Fix duplicated lines in header fileJosé Bollo1-3/+0
Change-Id: I75558cf086b8b2d74297f9996abaa7f5a0b58cb7 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2018-12-13wrap-json: new helper functions for comparisonjobol1-1/+9
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>
2018-12-13wrap-json: Add clone facilityJosé Bollo1-1/+5
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>
2018-12-13Include afb-utilities from C++ easilyRomain Forlot1-0/+7
Change-Id: Ic1c815b412d372a418c2faa51fea451c9100693c Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-12-13Initializing the repoRomain Forlot1-0/+46
Change-Id: I354a1c136a57e1ec8d511041fbd13a19b730c419 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>