The url http://smart-ip.net/geoip-json contains a JSON with data about your geolocation.
I want to store that JSON file in JavaScript variables, so I can work with the fields of this JSON.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It seems a cross-domain request. Directly read the JSON is problematic, but you can use JSONP. Your link supports it. You need something like this:
DEMO.
`