how can i read json in jquery -


this question has answer here:

{     "employment_from_date":[         "from date cannot blank."     ],     "employment_to_date":[         "to date cannot blank."     ],     "employment_company":[         "company cannot blank."     ],     "employment_designation":[         "designation cannot blank."     ] } 

var json=  {     "employment_from_date":[         "from date cannot blank."     ],     "employment_to_date":[         "to date cannot blank."     ],     "employment_company":[         "company cannot blank."     ],     "employment_designation":[         "designation cannot blank."     ] };  $.each(json,function(key,item)  {     alert(key + " = "+ item); }); 

Comments