json_decoder_is_unsigned()

QNX SDP8.0JSON Library ReferenceAPIDeveloper

Determine whether a node represents an unsigned integer value

Synopsis:

#include <sys/json.h>
bool json_decoder_is_unsigned(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 returns true if the value of the specified or current node can be returned using json_decoder_get_int_ull(), 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 both a non-negative integer and within the range of an unsigned long long.

Returns:

Page updated: