# serialize_rules · FT4 Rell API · Chromia Docs (concept)

> function serialize_ rules(rules: list< rule_expression >): gtv Takes a list of rule_expression s and returns the gtv representation that can be used
inside

Source: https://docs.chromia.com/pages/ft4-rell/-f-t4-library/lib.ft4.core.accounts/serialize_rules/

FUNCTION

# serialize\_rules

```signature
function serialize_rules(rules: list<rule_expression>): gtv
```

[Source](https://gitlab.com/chromaway/ft4-lib/-/blob/development/rell/src/lib/ft4/core/accounts/auth_descriptor_rule_validation.rell#lines-7)

Takes a list of `rule_expression`s and returns the gtv representation that can be used
inside of auth descriptors.

**Parameters**

* **rules** — the list of rules that should be serialized, empty for no rules.

[View this page on docs.chromia.com](https://docs.chromia.com/pages/ft4-rell/-f-t4%20-library/lib.ft4.core.accounts/serialize_rules.html)Generated API reference, mirrored from the live docs
