How can I get only the "name":"josimara"
property in this code ajax
, I'm new to this area, thank you for the help.
<script src="http://www.habbid.com.br/assets/js/jquery-1.9.1.js"type="text/javascript"></script>
<script type="text/javascript">
var yql_url = 'https://query.yahooapis.com/v1/public/yql';
var url = 'https://www.habbo.com.br/api/public/users?name=josimara';
$.ajax({
'url': yql_url,
'data': {
'q': 'SELECT * FROM json WHERE url="'+url+'"',
'format': 'json',
'jsonCompat': 'new',
},
'dataType': 'jsonp',
'success': function(response) {
console.log(response);
document.getElementById("test").innerHTML = JSON.stringify(response);
},
'error': function(error) {
document.getElementById("test").innerHTML = "error";
}
});
</script>
<span id='test'>nothing</span>