mercredi 15 octobre 2014

Json is not getting passed properly in AJAX Post Request

Hi,

I am using a AJAX POST request in a controller and i am passing one complex object and i am giving call to a MVC Controller.


I am not able to get the object in the method of controller it is always null, i tried by replacing the Passing parameter with string and i found that json string is having extra escape characters (/) with each property.


So can anybody please tell me why these extra characters is being added in Json String, i am using JSON.stringify. and i think because of these escape character it is not getting deserialized at controller side. Any idea ??


Thanks,

Ankit






Json is not getting passed properly in AJAX Post Request

Aucun commentaire:

Enregistrer un commentaire