Skip to content

Commit 148f406

Browse files
committed
Add json filter information and example
1 parent 08ee449 commit 148f406

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

source/api/filters.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,3 +143,11 @@ You can also use quotes for literal sort key. To indicate a literal reverse, use
143143
<li v-repeat="users | orderBy 'name' -1">{&#123;name&#125;}</li>
144144
</ul>
145145
```
146+
147+
### json
148+
149+
JSON.stringify() incoming value rather than outputting the string representation (i.e. `[object Object]`).
150+
151+
``` html
152+
<pre>{{$data | json}}</pre>
153+
```

0 commit comments

Comments
 (0)