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

> pure function get(index: integer ): json Get the element at the specified index of this JSON array. json_array.get(index) is equivalent to json_array[index

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

FUNCTION

# json.get

```signature
pure function get(index: integer): json
```

Get the element at the specified index of this JSON array.

`json_array.get(index)` is equivalent to `json_array[index]`.

**Parameters**

* **index** — the array index

**Throws**

* `exception` — if this JSON value is not an array
* `exception` — if the specified index is out of bounds

Since 0.14.16

---

```signature
pure function get(key: text): json
```

Get the member with the specified key in this JSON object.

`json_object.get(key)` is equivalent to `json_object[key]`.

**Parameters**

* **key** — the object key

**Throws**

* `exception` — if this JSON value is not an object
* `exception` — if the specified key is not found in this object

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