Update 16_day_json.md

changed indentations to indentation
pull/457/head
Ememe Tochukwu Ebuka 3 years ago committed by GitHub
parent 4ab3bac14f
commit df70d0ff94
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -251,7 +251,7 @@ The _JSON.parse()_ is very handy to use. You do not have to pass optional parame
### Converting Object to JSON
When we want to change the object to JSON we use _JSON.stringify()_. The stringify method takes one required parameter and two optional parameters. The replacer is used as filter and the space is an indentations. If we do not want to filter out any of the keys from the object we can just pass undefined.
When we want to change the object to JSON we use _JSON.stringify()_. The stringify method takes one required parameter and two optional parameters. The replacer is used as filter and the space is an indentation. If we do not want to filter out any of the keys from the object we can just pass undefined.
```js
JSON.stringify(obj, replacer, space)

Loading…
Cancel
Save