I have been using this JSON
{
"firstName": "John",
"lastName": "Doe",
"age": 25,
"info": {
"email": "[email protected]",
"url": "http://"
}
}
With this jQuery function
<script>
$(document).ready(function() {
$("button").click(function() {
$.getJSON("demo_ajax_json.js", function(result) {
$.each(result, function(i, field) {
$("div").append(field + " ");
});
});
});
});
</script>
I want to extract the values of email and url from above given JSON. Can anybody help me in this regard.
Thank you