Skip to content

Commit

Permalink
fix: toIon and fromIon
Browse files Browse the repository at this point in the history
  • Loading branch information
wrussell1999 authored Dec 5, 2024
1 parent 2302a96 commit 6593820
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions content/docs/expressions/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -596,6 +596,16 @@ In versions prior to [v0.18.0](/blogs/2024-08-06-release-0-18.md), this filter w

---

### `toIon`

The `toIon` filter converts any object into an Ion string. Example:

```twig
{{ myObject | toIon }}
```

---

### `jq`

The `jq` filter applies a [JQ expression](https://stedolan.github.io/jq/) to a variable. The result is always an array formatted as JSON. Use the `first` filter to extract the first (or only) result.
Expand Down Expand Up @@ -1461,6 +1471,18 @@ Examples:

---

### fromIon

The `fromIon` function parses a ION string into an object, enabling property access.

Example:

```twig
{{ fromIon(read(someItem)).someField }}
```

---

### yaml

The `yaml` function parses a YAML string into an object.
Expand Down

0 comments on commit 6593820

Please sign in to comment.