Sunday, April 22, 2012

Parsing and Looping Through JSON Data

For my first ever tutorial on Youtube, I have decided to take on something light. Something not everyone uses but something that can make life easier for programmers. The tutorial shows how to parse and loop through a JSON data received from the server.

JSON or Javascript Object Notation is a data format that is language-independent which makes it easy to pass data without having to worry about syntax conversion.

In this tutorial, we fetch data from a MySQL server using a SELECT query and pass that data in JSON format from the server (using PHP) to the front-end. Then we parse it (turn it into a Javascript object) and loop or iterate through it with the help of jQuery.

Hope you learn something.  Click on the play button to proceed.


No comments:

Post a Comment