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

MySQL JSON Operations | Advantages and Limitations

JSON's popularity has risen steadily since its inception nearly 15 years ago. JSON is used…

2 days ago

4 Easy to Steps to Develop a SaaS Accounting Software

Every business needs financial foresight to make one of its pillars stronger and to make…

2 days ago

How to Track Results When You Promote Services for Followers & Likes

One of the trends in social media marketing is the promotion of services that foster…

3 days ago

How to Use Micro-Influencers for More Authentic Promotion

The second article illustrates how micro-influencers can be applied more effectively in the promotion process.…

3 days ago

Why Cheap Follower Packages Can Backfire for Brands

In the end, in the social media battle for eyeballs, the sheer number of followers…

3 days ago

How to Find Influencers Who Actually Boost Engagement

This is not about just the word-of-mouth buzz on influencer marketing. It ranks in the…

3 days ago