Example 7
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script>
$(document).ready(function () {
$.ajax({
url:'http://127.0.0.1:8000/jquery/json/',
type:'GET',
success: function (data) {
alert(data[0].id)
alert(data[0].name)
}
});
})
</script>
</body>
</html>
This page should automatically redirect. If nothing is happening please use the continue link below.