Set a JSON encoder option
#include <sys/json.h>
void json_encoder_set_option(json_encoder_t *encoder, json_encoder_option_t option);
This function enables the given option for the given JSON encoder. Options should be adjusted only immediately after calling json_encoder_create(), json_encoder_cleanup(), or json_encoder_reset().
This call has no effect on an encoder instance obtained from json_decoder_get_encoder(), since JSON items encoded with these encoders are added directly to the decoder tree rather than into a JSON-formatted buffer.