I'm doing my first JSON/JSONP project and I am having some difficulty pulling data back. My code is:
var urlShopify = 'https://XXXX:XXXX@xxxxxx.myshopify.com/admin/orders.json?jsoncallback=?';
For security purposes a few of the data pieces have been changed to XX.
When I execute the code above I get the following error:
Uncaught SyntaxError: Unexpected token :
I've looked in many places but haven't been able to find a clear answer why this is happening.
In the console I can see JSONP data returned and the data will validate in http://jsonlint.com/
with no errors.
Can anyone tell me what I am missing here?