json_decoder_reset()

Reset a JSON decoder instance

Synopsis:

#include <sys/json.h>
void json_decoder_reset(json_decoder_t *decoder);

Arguments:

decoder
The JSON decoder instance.

Library:

libjson

Description:

This function resets the given JSON decoder, which means it is positioned at the root node, reflecting the state it is in immediately after parsing the JSON data. This is a convenient way to jump to the top of decoder tree that represents the data.