commit | 25d62edd012ff5225e94ba3f4297c17771dd79d8 | [log] [tgz] |
---|---|---|
author | Marti Bolivar <marti.bolivar@linaro.org> | Wed Jun 07 14:10:57 2017 -0400 |
committer | Anas Nashif <nashif@linux.intel.com> | Thu Jun 08 15:11:23 2017 -0400 |
tree | 58a809deb977ab0ff2cc74a4db586f100388ec12 | |
parent | b4c8d83eabae7bda250b0621d66a03d54b531c4a [diff] |
lib: json: add helper macros for arrays of objects Since JSON_OBJ_DESCR_ARRAY is suitable only for arrays of primitives, add JSON_OBJ_DESCR_OBJ_ARRAY (and a ..._NAMED variant), to allow users to handle arrays of objects. Having a macro is important, given the unintuitive space optimization used for storing the offset to the structure element containing the number of elements in the array. Signed-off-by: Marti Bolivar <marti.bolivar@linaro.org>