mesh: Base config json code on newer version of json-c 15/221715/1
authorInga Stotland <inga.stotland@intel.com>
Fri, 20 Dec 2019 19:13:29 +0000 (11:13 -0800)
committerAbhay Agarwal <ay.agarwal@samsung.com>
Tue, 7 Jan 2020 05:13:23 +0000 (10:43 +0530)
commit95a99c60487809a6a4d2b9640939845edf15f726
tree4216b36d7375ebd03619b57ebefd20e009be97cc
parent8a48536c63b560128472f31dd42e6dba92c95dc3
mesh: Base config json code on newer version of json-c

This removes a roundabout logic that was required to delete
a json entry from a json array using libjsonc utilities.
A new API function, json_object_array_del_idx(), implemented in
json-c version 0.13 simplifies array entry removal to one call.

Also, add requirement to configure.ac for json-c version >= 0.13

Change-Id: I4c1e90d7dedd64404ad2404070d51a6a224677cb
Signed-off-by: Abhay Agarwal <ay.agarwal@samsung.com>
configure.ac
mesh/mesh-config-json.c
tools/mesh/mesh-db.c