json_decoder_is_integer()

QNX SDP8.0JSON Library ReferenceAPIDeveloper

Determine if a node represents an integer value

Synopsis:

#include <sys/json.h>
bool json_decoder_is_integer(json_decoder_t *decoder,
        const char *name)

Arguments:

decoder
The JSON decoder instance.
name
The name of the node to test, or NULL to test the current node.

Library:

libjson

Description:

This function returns true if the value of the specified or current node can be returned using json_decoder_get_int_ll(), or false otherwise.

Four functions can return numeric values: json_decoder_get_int(), json_decoder_get_int_ll(), json_decoder_get_int_ull(), and json_decoder_get_double(). The underlying value determines which of these functions can return the value without error. Call this function to test whether the value is an integer and is within the range of a long long.

Returns:

Page updated: