I have a json data with count attribute I want to remove "count":2
data from Json data.
Here is the Json data:
{"count":2,"value":[{"StudentId":"5","RollNo":"12228","StudentName":"Farhan","Attandance":"true"},{"StudentId":"6","RollNo":"443433","StudentName":"Arfan","Attandance":"False"}]}
I want to show like this - how is possible using jQuery?
[{"StudentId":"5","RollNo":"12228","StudentName":"Farhan","Attandance":"true"},{"StudentId":"6","RollNo":"443433","StudentName":"Arfan","Attandance":" False"}]
Here is my Ajax call
$(document).ready(function () {
$('#btnConvert').click(function () {
$('#result').append(JSON.stringify(makeJsonFromTable('MyTable')))
$('#result').show()
var d = JSON.stringify(makeJsonFromTable('MyTable'));
var d2 = d.value;
$.ajax({
url: "@Url.Action("AddUser")",
type: "POST",
data: JSON.stringify(value),
contentType: "application/json; charset=utf-8",
dataType: "json",
error: function (response) {
alert(response.responseText);
},
success: function (response) {
alert(response);
}
});
})
})