Created
May 5, 2020 12:36
-
-
Save anmolsukki/5deb12c26c7a7ff103ddf6445a5ad4c0 to your computer and use it in GitHub Desktop.
[ NodeJs ] Json String ( https://repl.it/@anmolsukki/1JsonString )
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const book = { | |
| title: "Ego is the enemy", | |
| author: "Ryan Holiday" | |
| } | |
| const bookJson = JSON.stringify(book); | |
| console.log(bookJson) | |
| const personData = JSON.parse(bookJson) | |
| console.log(personData.author) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment