Answers for "javascript load json"

79

javascript parse json

var jsonPerson = '{"first_name":"billy", "age":23}';
var personObject = JSON.parse(jsonPerson); //parse json string into JS object
Posted by: Guest on July-23-2019
1

json load

import json

with open('path_to_file/person.json') as f:
  data = json.load(f)
Posted by: Guest on October-27-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language