Parse json strings:
$.ajax({ dataType: 'json', url: parser + ip, success: function(data){ console.log(data); //var country = $.parseJSON('"country_code"'); //console.log(country); } }); and get the following line: {"country_code":"RU"} . How can I get the value of the country_code field from the json string?