# <small>nlohmann::json_sax::</small>boolean
```cpp
virtual bool boolean(bool val) = 0;
```
A boolean value was read.
## Parameters
`val` (in)
: boolean value
## Return value
Whether parsing should proceed.
## Version history
- Added in version 3.2.0.