I have an AJAX function like below, which will send a Json data to PHP file, How can I get these data in PHP file ?
$.ajax({
type: 'POST',
url: 'data11.php',
data: {
json: ko.toJSON(viewModel)
},
success: function () {}
});
My Json data is something like below
{"participants":[{"NoPrticiField":1,"empname":"gfh","designation":"fh","email":"fgh"},{"NoPrticiField":2,"empname":"fgh","designation":"fgh","email":"fgh"}]}:
json_decode($_POST['json']);