DO YOU NEED A CONTENT WRITER FOR YOUR BUSINESS?

Your One-Stop Solution for All Content Needs! Click here for more!
jQuery

Load JSON encoded data using jQuery.getJSON()

Share

Using jQuery.getJSON method you can get or load JSON encoded data by an AJAX HTTP GET request. The method returns XMLHttpRequest object.

JSON stands for JavaScript Object Notation. So, this is a way of formatting the data to look at loading JSON data using an HTTP GET request (you can also use POST method).

Syntax:

$.getJSON( url, [data], [callback] )

Example of jQuery.getJSON():

$.getJSON(“ajax.js”, function(result){

$.each(result, function(i, field){

$(“p”).append(field + ” “);

});

});

Read Also:

Read jQuery reference for more.

Jacob Frazier

Based on United States, Jacob Frazier is a skilled JavaScript developer with over 8 years of experience. He is passionate about change and trying new things, both professionally and personally. He loves startups and is extremely proactive.

Recent Posts

Top Brand Promoter Agency in India | Increase Retail Sales by 40%

Very few brands suffer from a product issue. It's a conversion issue. People enter DMart,…

2 days ago

Retail KYC Collection & Verification Services in India | Fast & Compliant

The onboarding process of the retailer, distributor, or partner may soon become problematic if there…

2 days ago

All You Need to Know about Low THC Oil Registry Card Georgia

Many of the states in the United States of America allow the use of medical…

1 week ago

Easy Ways to Strengthen Online Security and Privacy

Did you know that every time you browse this website or any other, you leave…

1 week ago

Play Anytime, Anywhere with GameZone Arcade Games

Online casino has gained immense popularity with the rise of online casinos. Platforms like GameZone…

2 weeks ago

Need to rank for seasonal keyword?

Every business has one or several peak seasons or periods of time during the year…

2 weeks ago