var jsontree = []; $.ajax({ url: "http://192.168.2.46:8000/account/getjson/", type: "GET", dataType: 'JSONP', success: function(result){ jsontree = result; } });