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

> pure function str(): text Convert this JSON value to text. Note that this method is different to json.as_text() . This method converts this entire JSON val

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

FUNCTION

# json.str

```signature
pure function str(): text
```

Convert this JSON value to text.

Note that this method is different to `json.as_text()`. This method converts this entire JSON value
to its text representation, regardless of what type of JSON value this is, and does not throw an
exception. `json.as_text()` retrieves this text-typed JSON value as Rell text, and throws an
exception if this JSON value is not of text type.

Since 0.9.0

**Alias of** [json.to\_text](https://docs.chromia.com/pages/rell-stdlib/-rell-system-library/root/json/to_text/)

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