For testing we have registered with website http://api.ipinfodb.com. After registering we will get the API Key.This website has a web service which will return JSON response of IP location information for the HTTP request we send.

Country JSON is
{"statusCode":"OK","statusMessage":"jinu Testing JSON","ipAddress":"2.2.2.2.2.2","countryCode":"IN","countryName":"INDIA","regionName":"Kerala","cityName":"Kerala City","zipCode":"9632874","latitude":"11.3656155","longitude":"52.3333","timeZone":"test time zone"}