EVOLUTION-MANAGER
Edit File: angular.toJson.html
<a href='https://github.com/angular/angular.js/edit/v1.3.x/src/Angular.js?message=docs(angular.toJson)%3A%20describe%20your%20change...#L964' class='improve-docs btn btn-primary'><i class="glyphicon glyphicon-edit"> </i>Improve this Doc</a> <a href='https://github.com/angular/angular.js/tree/v1.3.9/src/Angular.js#L964' class='view-source pull-right btn btn-primary'> <i class="glyphicon glyphicon-zoom-in"> </i>View Source </a> <header class="api-profile-header"> <h1 class="api-profile-header-heading">angular.toJson</h1> <ol class="api-profile-header-structure naked-list step-list"> <li> - function in module <a href="api/ng">ng</a> </li> </ol> </header> <div class="api-profile-description"> <p>Serializes input into a JSON-formatted string. Properties with leading $$ characters will be stripped since angular uses this notation internally.</p> </div> <div> <h2 id="usage">Usage</h2> <p><code>angular.toJson(obj, pretty);</code></p> <section class="api-section"> <h3>Arguments</h3> <table class="variables-matrix input-arguments"> <thead> <tr> <th>Param</th> <th>Type</th> <th>Details</th> </tr> </thead> <tbody> <tr> <td> obj </td> <td> <a href="" class="label type-hint type-hint-object">Object</a><a href="" class="label type-hint type-hint-array">Array</a><a href="" class="label type-hint type-hint-date">Date</a><a href="" class="label type-hint type-hint-string">string</a><a href="" class="label type-hint type-hint-number">number</a> </td> <td> <p>Input to be serialized into JSON.</p> </td> </tr> <tr> <td> pretty </td> <td> <a href="" class="label type-hint type-hint-boolean">boolean</a><a href="" class="label type-hint type-hint-number">number</a> </td> <td> <p>If set to true, the JSON output will contain newlines and whitespace. If set to an integer, the JSON output will contain that many spaces per indentation (the default is 2).</p> </td> </tr> </tbody> </table> </section> <h3>Returns</h3> <table class="variables-matrix return-arguments"> <tr> <td><a href="" class="label type-hint type-hint-string">string</a><a href="" class="label type-hint type-hint-undefined">undefined</a></td> <td><p>JSON-ified string representing <code>obj</code>.</p> </td> </tr> </table> </div>