From 148f4060c34bfc82c2b60d8070b2bdadc6f6104d Mon Sep 17 00:00:00 2001 From: BigBlueHat Date: Thu, 13 Nov 2014 13:15:14 -0500 Subject: [PATCH] Add `json` filter information and example --- source/api/filters.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/source/api/filters.md b/source/api/filters.md index a4f22b7e9a..0a37918611 100644 --- a/source/api/filters.md +++ b/source/api/filters.md @@ -143,3 +143,11 @@ You can also use quotes for literal sort key. To indicate a literal reverse, use
  • {{name}}
  • ``` + +### json + +JSON.stringify() incoming value rather than outputting the string representation (i.e. `[object Object]`). + +``` html +
    {{$data | json}}
    +```