nRF Connect SDK API 2.8.99
|
int json_add_number_to_array | ( | cJSON * | parent, |
double | number ) |
Add number to array object.
This API is expected to be called after data has been added to the child item. If this API fails to add the child item to the parent it will free the child item. Due to this its not guaranteed that subsequent accesses to the child item will succeed after this API call.
[in,out] | parent | Pointer to a parent array object. |
[in] | number | Pointer to number to be added. |