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

Writing Tools That Help Content Marketers Produce Cleaner Work

Content marketing has a hidden tax. It's not the writing itself, it's everything that happens…

16 hours ago

How Data Analytics Is Actually Driving Smarter Marketing Decisions

Most marketing teams aren't failing because they lack data. They're failing because they can't act…

1 week ago

The Ultimate SPF Tester Guide: Boost Email Deliverability In Minutes

Email marketing continues to be one of the most effective ways for businesses to communicate,…

2 weeks ago

Sales Ops: A role that helps sales teams work as efficiently as possible

Xerox first introduced it around the mid-1970s. The need came up because the management activities…

2 weeks ago

Forex Investment Tips for Beginners

Investing in the forex market may look to be a dangerous game. With some worthwhile…

3 weeks ago

How Did The Restaurant Industry change In Post Pandemic Era?

The coronavirus outbreak has drastically changed the way we live our lives. Yes, that's absolutely…

1 month ago