JsonElement::getAsLong() const
Function Usage
Uses errno to indicate an invalid call if the JsonElement node is not of the long type, or otherwise, returns the long value.
Function Syntax
int64_t JsonElement::getAsLong() const;
Return Value
- Success: the long value of the node.
- Failure: an uninitialized long value.
If the data type of the node is not long, an uninitialized long value is returned.
Parent topic: Function Syntax