nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches

◆ json_add_number_to_array()

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.

Parameters
[in,out]parentPointer to a parent array object.
[in]numberPointer to number to be added.