Possible Duplicate:
jQuery: How to stop AJAX function escaping JSON string used to POST data
I make a jQUERY ajax call to send and save to data.When I send Google's Dog
string, I receive Google\'s Dog
. What is the reason of this . And what is the best way yo avoid this. I do not want to use stripslashes function because this removes all backslashes
$.ajax({
type: "POST",
url: 'http://example.com/api/save',
data: {
data:userArray,
},
dataType: 'json',
success: function(response){
}
});
userArray is an array which has user's information