My goal is to acquire just the business reviews from a Google places API call, I expected to see the full Json results stringified or returned otherwise in the console log. But instead I get a error in console that appears to be trying to treat the json response as executable code. Am i returning it to the console in a improper way or is this normal?
Ajax Call
var getReviews = $.ajax({
type: "POST",
url: 'https://maps.googleapis.com/maps/api/place/details/json?placeid=ChIJc5Kt8ow574gRi2G-KSJOtnY&key=A VALID API KEY',
async:true,
dataType : 'jsonp', //used jsonp for cross origin request
crossDomain:true,
success: function(data, textStatus, jqXHR) { console.log(JSON.stringify(data)); }
});
error:
Partial of Json response when posted straight to browser URL:
{
"html_attributions" : [],
"result" : {
"address_components" : [
{
"long_name" : "1955",
"short_name" : "1955",
"types" : [ "street_number" ]
},
{
"long_name" : "Southwest Main Boulevard",
"short_name" : "SW Main Blvd",
"types" : [ "route" ]
},