Filter: json

json allows you to convert a JavaScript object into JSON format. (Mostly useful for debugging.) (When using the double curly {{value}} notation the binding is automatically converted to JSON if it is not a primitive type.)

Usage

input JavaScript object, primitive or an array
Parameters none
Output JSON encoded the object.
DOM none

Example