[Answer]-Viewing the JSON from an AJAX call

1👍

you can use the console.log(data);

like this:

$('#search').keyup(function() {
        $.ajax({
            type: "GET",
            url: "/main/search/",
            data: {
                'search_text': $('#search').val()
            },
            success: function(data) {
                console.log(data);
            },

            dataType: 'json'
        });
    });

0👍

You could also open up your console and look in the network tab. From there, you should be able to see all the XHR requests, view the responses, headers, etc

Leave a comment