Last Updated:
jQuery getJSON() Method loads JSON-encoded data from the server using a GET HTTP request.
Note: JSON file used in this example is data.json
Value | Type | Explanation |
---|---|---|
url | Required | Specifies the URL to which the request to be sent. |
success | Optional | Specifies a callback function that is executed if the request succeeds. |
Device | ![]() | ![]() | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Browser | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
getJSON() | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes |