![]() |
JSON Parser
1.0
|
| int json_list_object_array_value_add_boolean | ( | list_object * | list_to_add, |
| const boolean | boolean_value | ||
| ) |
Add a new Boolean Value to a JSON Array, defined by the list_object provided.
This function will add a new Value element to the provided list_object at the last position of that list.
This function only supports adding value of type boolean.
If there are already elements in this list_object, then they are used to confirm that the list_object requested, is actually a JSON Array. If this is the first element to be added, then as no check can be made, it is assumed the caller is providing a Value to a valid JSON list type. If the list type is incorrect, an error will be thrown up when the second element is added.
| [in] | list_to_add | the list_object of the JSON data hierarchy to add the new value to. |
| [in] | boolean_value | TRUE or FALSE, to use as the new Value \retval LIST_OK success, new element added to the list \retval LIST_ERR on error |