json_decoder_get_int_ull()
QNX SDP8.0JSON Library ReferenceAPIDeveloper
Get the unsigned long long value from the current node or the specified node
Synopsis:
#include <sys/json.h>json_decoder_error_t json_decoder_get_int_ull(json_decoder_t *decoder,
const char *name,
unsigned long long *value,
bool optional)Arguments:
- decoder
- The JSON decoder instance.
- name
- The name of the node to return the value for, or NULL to return the value for the current node.
- value
- A pointer to the
unsigned long long intto update with the value. - optional
- Indicates whether the presence of this node is optional. When the decoder returns values for optional nodes, it does not register an error status if the node does not exist.
Library:
libjsonDescription:
This function returns the unsigned long long value from the current node or from the node with the given name, if the decoder is currently positioned in an object. If successful, the decoder advances its position to the next node in the object or array.
Returns:
- JSON_DECODER_OK - Success.
- JSON_DECODER_BAD_TYPE - The specified node is not a number type.
- JSON_DECODER_CONVERSION_FAILED - The specified node is not an integer type or is out of range.
- JSON_DECODER_NOT_FOUND - The specified node does not exist.
Page updated:
