value::as_bool Method

Convert the JSON value to a C++ bool, if and only if it is a Boolean value.

_ASYNCRTIMP bool as_bool() const;

Return Value

A C++ bool representation of the value

Requirements

Header: json.h

Namespace: web::json

See Also

Reference

value Class