json_decoder_get_data_version()

Get the current data version for the decoder

Synopsis:

#include <sys/json.h>
int json_decoder_get_data_version(json_decoder_t *decoder);

Arguments:

decoder
The JSON decoder instance.

Library:

libjson

Description:

This function gets the current data version for the given decoder.

The data version is available purely to provide information to callers about changes to the contents of a decoder instance. The version will be updated automatically when parsing new data with json_decoder_parse_json_str(), removing nodes with json_decoder_remove_node(), or when using the encoder returned from json_decoder_get_encoder() to add or update nodes in the decoder tree.

Returns:

The current data version.