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

> type json A JSON (JavaScript Object Notation) datatype. JSON values are created from text and support conversion to GTV via gtv.from_json() . They can be
s

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

TYPE

# json

```signature
type json
```

A JSON (JavaScript Object Notation) datatype.

JSON values are created from text and support conversion to GTV via `gtv.from_json()`. They can be
stored in the database as an entity attribute.

JSON values in Rell are represented internally with text, which has been validated as legal JSON.

**See Also**

1. [`gtv` - Rell Standard Library](https://docs.chromia.com/pages/rell-stdlib/-rell-system-library/root/gtv/)
2. [`gtv.from_json()` - Rell Standard Library](https://docs.chromia.com/pages/rell-stdlib/-rell-system-library/root/gtv/from_json/)

Since 0.6.0

## Methods

[as\_big\_integer](https://docs.chromia.com/pages/rell-stdlib/-rell-system-library/root/json/as_big_integer/)
:   Convert this JSON value to a biginteger.

[as\_big\_integer\_or\_null](https://docs.chromia.com/pages/rell-stdlib/-rell-system-library/root/json/as_big_integer_or_null/)
:   Convert this JSON value to a biginteger.

[as\_boolean](https://docs.chromia.com/pages/rell-stdlib/-rell-system-library/root/json/as_boolean/)
:   Convert this JSON boolean value to a boolean.

[as\_boolean\_or\_null](https://docs.chromia.com/pages/rell-stdlib/-rell-system-library/root/json/as_boolean_or_null/)
:   Convert this JSON boolean value to a boolean.

[as\_integer](https://docs.chromia.com/pages/rell-stdlib/-rell-system-library/root/json/as_integer/)
:   Convert this JSON integer value to an integer.

[as\_integer\_or\_null](https://docs.chromia.com/pages/rell-stdlib/-rell-system-library/root/json/as_integer_or_null/)
:   Convert this JSON integer value to an integer.

[as\_text](https://docs.chromia.com/pages/rell-stdlib/-rell-system-library/root/json/as_text/)
:   Convert this JSON text value to text.

[as\_text\_or\_null](https://docs.chromia.com/pages/rell-stdlib/-rell-system-library/root/json/as_text_or_null/)
:   Convert this JSON text value to text.

[get](https://docs.chromia.com/pages/rell-stdlib/-rell-system-library/root/json/get/)
:   Get the element at the specified index of this JSON array.

[get\_or\_null](https://docs.chromia.com/pages/rell-stdlib/-rell-system-library/root/json/get_or_null/)
:   Get the element at the specified index of this JSON array, or null if this JSON value is not an

[is\_array](https://docs.chromia.com/pages/rell-stdlib/-rell-system-library/root/json/is_array/)
:   Determine whether this JSON value is an array.

[is\_big\_integer](https://docs.chromia.com/pages/rell-stdlib/-rell-system-library/root/json/is_big_integer/)
:   Determine whether this JSON value can be converted to biginteger.

[is\_boolean](https://docs.chromia.com/pages/rell-stdlib/-rell-system-library/root/json/is_boolean/)
:   Determine whether this JSON value is a boolean.

[is\_integer](https://docs.chromia.com/pages/rell-stdlib/-rell-system-library/root/json/is_integer/)
:   Determine whether this JSON value is an integer.

[is\_null](https://docs.chromia.com/pages/rell-stdlib/-rell-system-library/root/json/is_null/)
:   Determine whether this JSON value is null.

[is\_object](https://docs.chromia.com/pages/rell-stdlib/-rell-system-library/root/json/is_object/)
:   Determine whether this JSON value is an object.

[is\_text](https://docs.chromia.com/pages/rell-stdlib/-rell-system-library/root/json/is_text/)
:   Determine whether this JSON value is text.

[json](https://docs.chromia.com/pages/rell-stdlib/-rell-system-library/root/json/json/)

[keys](https://docs.chromia.com/pages/rell-stdlib/-rell-system-library/root/json/keys/)
:   Get the keys of this JSON object.

[size](https://docs.chromia.com/pages/rell-stdlib/-rell-system-library/root/json/size/)
:   Get the size of this JSON value; i.e. the number of elements in this JSON array, or the number of

[str](https://docs.chromia.com/pages/rell-stdlib/-rell-system-library/root/json/str/)
:   Convert this JSON value to text.

[to\_text](https://docs.chromia.com/pages/rell-stdlib/-rell-system-library/root/json/to_text/)
:   Convert this JSON value to text.

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