forked from angular/code.angularjs.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathangular.fromJson.html
21 lines (21 loc) · 940 Bytes
/
angular.fromJson.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<h1>angular.fromJson</h1>
<div class="angular-fromjson"><fieldset class="workInProgress"><legend>Work in Progress</legend>
This page is currently being revised. It might be incomplete or contain inaccuracies.</fieldset>
<h2>Description</h2>
<div class="description"><p>Deserializes a string in the JSON format.</p></div>
<h2>Dependencies</h2>
<ul class="dependencies"></ul>
<h2>Usage</h2>
<div class="usage"><div ng:non-bindable=""><pre class="brush: js; html-script: true;">angular.fromJson(json, useNative);</pre>
</div>
<h3>Parameters</h3>
<ul class="parameters"><li><code ng:non-bindable="">json – {string} – </code>
<p>JSON string to deserialize.</p></li>
<li><code ng:non-bindable="">useNative – {boolean} – </code>
<p>Use native JSON parser if available</p></li>
</ul>
<h3>Returns</h3>
<div class="returns"><code ng:non-bindable="">{Object|Array|Date|string|number}</code>
– <p>Deserialized thingy.</p></div>
</div>
</div>