Home
Tutorials
Microsoft Technologies Tutorials
Java Programming Tutorials
Web Designing Tutorials
Script Programming Tutorials
Database Programming Tutorials
Mobile Technologies Tutorials
Other Programming Tutorials
Examples
Articles
Tools
News
AngularJS JSON Filter Example
Keywords : Json filter example in angularjs, Angularjs json filter to convert string to json object example, Angularjs format javascript object json string example
Example
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title> AngularJs JSON Filter to Convert JavaScript Object to JSON String </title> <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script> </head> <body ng-app=""> <h2>AngularJS JSON Filter Example</h2> <div> Default JSON Format <pre>{{ {'name': 'Suresh Dasari','age': '29'} | json }}</pre> JSON Format with Spacing <pre>{{ {'name': 'Suresh Dasari','age': '29'} | json:10 }}</pre> </div> </body> </html>
Click Here to See Result
Result
Previous
Next