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

10 Home Security Tips to Help Protect Your Family

Home security is not just about stopping burglars. It is about protecting your family, your…

1 day ago

Benefits of an Integrated Contact Center Solution

Customer Loyalty is one of the most important things for brands today. Everyday companies come…

1 day ago

Australian universities transfer entry pathways explained for international students

If you’re an international student in Australia and thinking about a course transfer or transferring…

2 days ago

Tips to Improve Internet Safety and Security

The internet is a critical part of how we do things today. Anything and everything…

2 days ago

Do Kids Need Basketball Shoes

Yes, your kids need basketball shoes. Many parents think that shoes will not impact performance.…

4 days ago

Top List: Best Apps Every Business Need

If you use the right technology, you can significantly simplify your daily entrepreneurial tasks while…

1 week ago