I want to parse this using jQuery or javascript My JSON generated from the PHP code is as follows:
JSON
{
"user": {
"name": "John Carter",
"position": 0,
"tickets": {
"months": [
"October",
"November"
],
"start_Time": "2014-10-02",
"end_Time": "2014-11-21",
"Open": [
"1",
"3"
]
}
}
}
My Javascript
$.ajax({
url: 'ajax.report.php',
type: 'POST',
data: 'start='+startDate+'&&end='+endDate,
success: function(response){
var json_obj = $.parseJSON(response);
for(var i =0; i < json_obj.user.length; i++){
//What is the next?
}
}
});
Kindly help. Thank you !