0
Q:

javascript load json

var jsonPerson = '{"first_name":"billy", "age":23}';
var personObject = JSON.parse(jsonPerson); //parse json string into JS object
34
import json

with open('data.txt') as json_file:
    data = json.load(json_file)
0
//using JQuery
$.getJSON("test.json", function(json) {
    console.log(json); // this will show the info it in firebug console
});
2

New to Communities?

Join the community