Answers for "how to load and parse the json data in node js"

0

how to load and parse the json data in node js

const data = '{ "name": "Flavio", "age": 35 }'
try {
  const user = JSON.parse(data)
} catch(err) {
  console.error(err)
}
Posted by: Guest on August-10-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language