Skip to content
Commit 25d62edd authored by Martí Bolívar's avatar Martí Bolívar Committed by Anas Nashif
Browse files

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: default avatarMarti Bolivar <marti.bolivar@linaro.org>
parent b4c8d83e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment