Merge pull request #78 from d3lity/patch-1
typo fixed: JSON.stingify => JSON.stringify
This commit is contained in:
commit
8ab84aac27
|
@ -175,13 +175,13 @@ In general to parse or stringify JSON data, the browsers built in JSON parser ca
|
|||
To create a formatted string from a JSON object, use:
|
||||
|
||||
```js
|
||||
var formattedString = JSON.stingify(json, null, 2);
|
||||
var formattedString = JSON.stringify(json, null, 2);
|
||||
```
|
||||
|
||||
to create a compacted string from a JSON object, use:
|
||||
|
||||
```js
|
||||
var compactString = JSON.stingify(json);
|
||||
var compactString = JSON.stringify(json);
|
||||
```
|
||||
|
||||
To parse a String to a JSON object, use:
|
||||
|
|
Loading…
Reference in New Issue