<html ng-app="">    
<head>  <!-- www.w3tr.com -->  
<title>angular.toJson Örnek</title>    
<script SRC="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.13/angular.js">    
</script>    
    
</head>    
<body bgcolor="#ccc">  
<fieldset>  
<legend>angular.toJson Örnek</legend>  
<script>   

//Array object
var mySource1 = [{isim : 'Jimi', yaş : '30'},{isim : 'Tom', yaş : '23'}]  
var mySource3 = {adres : '12-13/A12', telefon : '111-111-1111'}  
  
document.write(angular.toJson(mySource1));  
document.write("</br>");  
document.write(angular.toJson(mySource3));  
document.write("</br>");  
  
</script>  
</fieldset>  
</body>    
</html> 

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.