Rate This Document
Findability
Accuracy
Completeness
Readability

JsonElement::getAsShort() const

Function Usage

Uses errno to indicate an invalid call if the JsonElement node is not of the short type, or otherwise, returns the short value.

Function Syntax

short JsonElement::getAsShort() const;

Return Value

  • Success: the short value of the node.
  • Failure: an uninitialized short value.

If the data type of the node is not short, an uninitialized short value is returned.