json_decoder_previous()

Move to the previous node in the current array or object

Synopsis:

#include <sys/json.h>
json_decoder_error_t json_decoder_previous(json_decoder_t *decoder);

Arguments:

decoder
The JSON decoder instance.

Library:

libjson

Description:

This function positions the decoder at the previous element in the current array or the previous property in the current object, if one exists.

Returns:

JSON_DECODER_OK
Success.
JSON_DECODER_NOT_FOUND
The previous node does not exist.