Skip to content

Instantly share code, notes, and snippets.

@anmolsukki
Created May 5, 2020 12:36
Show Gist options
  • Select an option

  • Save anmolsukki/5deb12c26c7a7ff103ddf6445a5ad4c0 to your computer and use it in GitHub Desktop.

Select an option

Save anmolsukki/5deb12c26c7a7ff103ddf6445a5ad4c0 to your computer and use it in GitHub Desktop.
[ NodeJs ] Json String ( https://repl.it/@anmolsukki/1JsonString )
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