Take the 2-minute tour ×

I have a JSON format like this returned via a ajax call

    "page_address":" Yahoo Pvt Limited,Yahoo CORP,US",
    "page_meta_tags":" yahoo,yahoo,yahoo",
    "page_state":"Newyork state"

and this is my call

    alert(data.user_page_name);  //return undefined    

How can i get the value of user_page_name and others ?

Thank you.

Note : The Question is SOLVED

share|improve this question
You need to specify JSON as the return type –  Pekka 웃 Nov 18 '11 at 9:03
@Pekka ,waaav ,SOLVED,i forgot that and searching alot...thank you. –  Red Nov 18 '11 at 9:06
$.getJSON for the win –  Sinetheta Nov 18 '11 at 9:23

3 Answers 3

Maybe it is not working because the format of your data is not JSON.

You should use the JQuery function getJSON instead.

share|improve this answer
The format is json but i forgot the return type,SOLVED –  Red Nov 18 '11 at 9:06

try like this.

  url: url,
  type: "GET",
  data: parameters,
  dataType: "JSON",
  success: function(data){

share|improve this answer

The data can be retrieved very easily by doing something like this:

share|improve this answer

Your Answer


