Rate This Document
Findability
Accuracy
Completeness
Readability

JsonElement::getAsBoolean()

Function Usage

Returns the bool value if the JsonElement node is of the bool, integer, or string type, or otherwise, throws a runtime exception.

Function Syntax

bool JsonElement::getAsBoolean();

Return Value

  • Success: the bool value of the node.
  • Failure: A runtime exception is thrown.