zephyr/lib/json
Marti Bolivar b4c8d83eab lib: json: fix arr_parse()
This function currently fails when decoding an array with number of
elements exactly equal to the maximum available in the struct.

To fix this, move the check for if the current field is past the end
of the array to just before attempting to decode a value. This allows
the last element to be followed by a JSON_TOK_LIST_END token in the
case that the array is full, and the function to return success.

Signed-off-by: Marti Bolivar <marti.bolivar@linaro.org>
2017-06-08 15:11:23 -04:00
..
json.c lib: json: fix arr_parse() 2017-06-08 15:11:23 -04:00
json.h lib: json: clarify JSON_OBJ_DESCR_ARRAY usage 2017-06-08 15:11:23 -04:00
Kconfig
Makefile