我要评分
获取效率
正确性
完整性
易理解

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.