json_encoder_set_option()
QNX SDP8.0JSON Library ReferenceAPIDeveloper
Set a JSON encoder option
Synopsis:
#include <sys/json.h>
void json_encoder_set_option(json_encoder_t *encoder,
json_encoder_option_t option)
Arguments:
- encoder
- The JSON encoder instance.
- option
- The option being enabled (see json_encoder_option_t).
Library:
libjsonDescription:
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().
Note:
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.
Page updated: