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

> pure function get_ or_ null(index: integer ): json ? Get the element at the specified index of this JSON array, or null if this JSON value is not an
array,

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

FUNCTION

# json.get\_or\_null

```signature
pure function get_or_null(index: integer): json?
```

Get the element at the specified index of this JSON array, or null if this JSON value is not an
array, or if the specified index is out of bounds.

**Parameters**

* **index** — the array index

Since 0.14.16

---

```signature
pure function get_or_null(key: text): json?
```

Get the member with the specified key in this JSON object, or null if this JSON value is not an
object, or if the specified key is not found in this object.

**Parameters**

* **key** — the object key

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/get_or_null.html)Generated API reference, mirrored from the live docs
