typo fixed: JSON.stingify => JSON.stringify
This commit is contained in:
parent
a6f141b392
commit
ef2b073e84
|
@ -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