Reset a JSON encoder instance
#include <sys/json.h>
void json_encoder_reset(json_encoder_t *encoder, int offset);
This function resets the given JSON encoder for encoding new data. It is typically better to call json_encoder_reset() rather than json_encoder_cleanup() when performing multiple encoding operations, to reduce memory allocation operations. This is because the encoder's buffer will automatically grow to accommodate the largest size required.