Updated: April 19, 2023 |
Create a property in the JSON encoder
#include <sys/json.h>
json_encoder_error_t json_encoder_add_property_name( json_encoder_t *encoder, const char *name);
This function creates a property with the given name in the current object or array in the given JSON encoder. The value for the property is provided in a subsequent json_encoder_add_*() or json_encoder_start_*() call with NULL passed in for the function's name parameter.