json_encoder_cleanup()
QNX SDP8.0JSON Library ReferenceAPIDeveloper
Clean up a JSON encoder instance, freeing any associated memory
Synopsis:
#include <sys/json.h>
void json_encoder_cleanup(json_encoder_t *encoder)
Arguments:
- encoder
- The JSON encoder instance.
Library:
libjsonDescription:
This function cleans up the given JSON encoder, freeing any memory associated with it. Calling this function is not typically required, as the encoder is cleaned up when json_encoder_destroy() is called. It may be used to reduce memory usage if particularly large strings have been encoded and it is not desirable to destroy the encoder itself. Calls to json_encoder_reset() will make use of already allocated memory so there is no need to call json_encoder_cleanup() before calling this other function.
Page updated: