How to get a value from jsonstring.I have stringified json as
[{"id":0,"date":"05-11-2018","total":0},{"id":1,"date":"06-11-2018","total":0},{"id":2,"date":"07-11-2018","total":0},{"id":3,"date":"08-11-2018","total":0},{"id":4,"date":"09-11-2018","total":0},{"id":5,"date":"10-11-2018","total":0},{"id":6,"date":"11-11-2018","total":0}]
How to get the second date 06-11-2018 from this javascript object string.
var counter = 0;
var jsonObj;
var stringify, obj;
function myFunction(con) {
counter = con + counter;
$.ajax({
url: 'http://localhost/driverapp/www/c11/week.php',
type: 'POST',
dataType: "json",
data: {
counter: counter
},
success: function(response) {
jsonObj = JSON.stringify(response);
}
});
alert(jsonObj);
}