Home
Run >
<!DOCTYPE html> <html ng-app=""> <head> <!-- www.techstrikers.com --> <title>My first AngularJS code</title> <script SRC="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.13/angular.js"> </script> </head> <body bgcolor="#bnde45"> <fieldset> <legend>AngularJS FromJSON Function</legend> <script> var strJSON= '{"name":"Jimi","age":30,"address":"12-13/A10"}'; document.write(angular.fromJson('{"a":1,"b":2,"c":3}')); document.write("<br>"); document.write(angular.fromJson(strJSON)); document.write("<br>"); </script> </fieldset> </body> </html>