Q
What is the purpose of the AJAX method $.getJSON() in jQuery?
Question ID
#19104
Subchapter
What is AJAX
Action
Choose one option below
Choose Your Answer
Click an option to check whether your answer is correct.
A
To initiate a POST request ✔✖
B
To retrieve JSON data from the server using GET ✔✖
C
To serialize form data ✔✖
D
To send a synchronous request ✔✖
B
Correct Answer: B
Explanation
The $.getJSON() method in jQuery is used to retrieve JSON data from the server using a GET request. It simplifies the process of making asynchronous requests and handling JSON responses.