I stuck in this problem how to parse json in from a url in android studio below is my json structure tried all other methods did'nt work for me
url : http://api.ipstack.com/109.94.137.130?access_key=e9e5de2c993dc6652ed45c3f9dc53daf
{
"ip":"109.94.137.130",
"type":"ipv4",
"continent_code":"EU",
"continent_name":"Europe",
"country_code":"GB",
"country_name":"United Kingdom",
"region_code":"ENG",
"region_name":"England",
"city":"Bedford",
"zip":"MK42",
"latitude":52.1073,
"longitude":-0.4649,
"location":{
"geoname_id":2656046,
"capital":"London",
"languages":[
{
"code":"en",
"name":"English",
"native":"English"
}
],
"country_flag":"http:\/\/assets.ipstack.com\/flags\/gb.svg",
"country_flag_emoji":"\ud83c\uddec\ud83c\udde7",
"country_flag_emoji_unicode":"U+1F1EC U+1F1E7",
"calling_code":"44",
"is_eu":true
}
}
please help regarding this issue. thanks in advance.