# json.as_boolean_or_null · Rell standard library · Chromia Docs (concept)

> pure function as_ boolean_ or_ null(): boolean ? Convert this JSON boolean value to a boolean. Returns this JSON boolean as a boolean, or null if this JSON

Source: https://docs.chromia.com/pages/rell-stdlib/-rell-system-library/root/json/as_boolean_or_null/

FUNCTION

# json.as\_boolean\_or\_null

```signature
pure function as_boolean_or_null(): boolean?
```

Convert this JSON boolean value to a boolean.

**Returns**

this JSON boolean as a boolean, or null if this JSON value is not a boolean

Since 0.14.16

[View this page on docs.chromia.com](https://docs.chromia.com/pages/rell-stdlib/-rell%20-system%20-library/%5Broot%5D/json/as_boolean_or_null.html)Generated API reference, mirrored from the live docs
