Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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)
}
Source by flaviocopes.com #
 
PREVIOUS NEXT
Tagged: #load #parse #json #data #node #js
ADD COMMENT
Topic
Name
9+4 =