mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-16 05:36:02 +00:00
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> |
||
---|---|---|
.. | ||
json.c | ||
json.h | ||
Kconfig | ||
Makefile |