getJSON in javascript

{
    "chart": {
        "data": [
            {"date":"2019-08-01", "open":3335, "high":3579, "low":1111, "close":1564 }
        ]
    }
}

$.getJSON(json_URL, function(result){ 
    /*
    for (i = 0; i < result['chart']['data'].length; i++) { 
      console.log(result['chart']['data'][i]['date']);
    }
    */
    var data = JSON.parse(JSON.stringify(result['chart']['data']));
});

發表迴響