json
test json
by Nibin George
HTML
<div id="div_id"></div>
<input type="submit" value="Click Here" id="mybutton" />
JavaScript
$('#mybutton').on('click', function () {
$.ajax({
url: 'http://echo.jsontest.com/key/awesome/number/five',
type: "GET",
success: function (result) {
$.each(result, function (i, v) {
// For each record in the returned array
alert(v);
$('#div_id').append(v);
});
}
});
});