Parse the JSON string in your response with “JSON.parse()” and assign the results to different variables.
Depending on the ajax function you use this step isn’t needed. See: jQuery.getJSON().
You can do a console.log() to view the structure of the parsed JSON. NB. In JS objects AND arrays are passed by reference.
There are tons of information out there on this topic. Before asking a question i recommend using a search engine first. This way you get a faster answer. A good programmer knows how to use a search engine.