Remote Json Data reply with header, How to remove?

Remote Json Data reply with header, How to remove?

bewwebbewweb Posts: 5Questions: 3Answers: 0

Per the code in below <Quote>, trying link to an external URL for Json data, while as the response always with the header per below,

// 20160613112208
// http://data.ntpc.gov.tw/NTPC/od/data/api/DEB37D64-264A-48F3-B3D6-978A98D22C68?$format=json

which causing DataTable return an error message of "Invalid Json Response". Kindly assist and advise how to eliminate the response header, and let the DataTable to display the data in table correctly?

Best Regards

Bewweb...

<Quote>
$(document).ready(function() {
$('#opendata').DataTable( {
"processing": true,
//"serverSide": true,
"ajax": {
"url": "http://data.ntpc.gov.tw/NTPC/od/data/api/DEB37D64-264A-48F3-B3D6-978A98D22C68?$format=json",
"dataType": "jsonp",
"dataSrc": ""},
"columns": [
{ "data": "station" },
{ "data": "location" },
{ "data": "local_drllr_anhour" },
{ "data": "local_tandem_anhour" },
{ "data": "local_lady_anhour" },
{ "data": "tel" }
]
} );
<Quote>

This discussion has been closed.