Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

json.parse

//JSON.parse()
const json = "{"name": "Example", "age": 50}";
let parsed_json = JSON.parse(json);
console.log(`Name: ${parsed_json.name}; Age: ${parsed_json.age}`)
// Returns "Name: Example; Age: 50"
Source by mpak1913.com #
 
PREVIOUS NEXT
Tagged:
ADD COMMENT
Topic
Name
1+9 =