Take the 2-minute tour ×  Ok, So I'm using AJAX to pull some
information from my MYSQL database and put it onto the screen.
The thing is I cannot understand JSON for the life of me. Can
you suggest any tutorials or anything that will help?  I mean I
get that I can encode my query via JSON but I guess it's the
javascript side I do not understand.  share|improve this
question  5 Answers 5  up vote 1 down vote accepted  Here's my
quick tutorial:  JSON is a means for expressing data for arrays,
objects, and their contents. It has nothing to do with object
behaviour (methods).  class Test {     public $hello = 'hello';
public $something = array('hello1', 'hello2');      public
__construct() {       public void printHello() {         echo
$this->hello;  This class would in JSON would look like:  var
obj = {    "hello": "hello",    "something": ["hello1",
"hello2"]   As you can see, JSON is similar to maps in a lot of
languages (key/value pairs). You can also see, that only data is
represented. JSON is also shor