Cross domain ajax request to a json file using JSONP

jQuery.ajax({
dataType: "jsonp",
url: https://digimantralabs.com/cishopify/shop/getdata?callback=somefunction,
data: {pid: productID},
success: function(data) { console.log(data);
jQuery('#product_review').html(data);
},
onComplete: function(htmldata){
alert();
}
});

 

$callback =  $this->input->get('callback');
$object=array('postalcodes'
=>array(
array(
"adminName2" => "Westchester",
"adminCode2" => "119",
"postalcode" => "10504",
"adminCode1" => "NY",
"countryCode" => "US",
"lng" => -73.700942,
"placeName" => "Armonk",
"lat" => 41.136002,
"adminName1" => "New York"
)));
echo $callback.'('.json_encode($object).')';