AngularJS Tutorial - Json Filter








The json filter takes a JSON, or JavaScript object, and turn it into a json string.

Example

{{ {'name': 'Javascript', 'Side': 'client'} | json }}

returns

{
   "name": "Javascript",
   "City": "client"
}