Using JSON in jQuery

Let's take a closer look at the .getJSON function.


url, //the location of the data data, //if you need to send anything to the service POST function(){


The first parameter of this function is just like the .load function; you'll place in the the URL that you are planning to read. The data parameter is used if you need to POST data to the URL (you can do this in a query string or array object). The call back function is not required, unless you're calling a URL from a server other than your own.

Let's now take a look at putting .getJSON to use in our WordPress site.

Was this article helpful?

0 0
Blogging For Business

Blogging For Business

Download this Guide And Discover How Start And Run Your Very Own Successful Business Blog. Always Wanted To Start Your Own Blog?

Get My Free Ebook

Post a comment