var jsonString ="{ "
jsonString += "name:" + Data.name+",";
jsonString += "surname:"+ Data.surname+",";
jsonString += "Address: " + Data.add;
jsonString += "}"
I am creating following json string for the Ajax call.but when there is "," in the address field. it is giving me error. can anybody tell me proper way to create json string in javascript for ajax calls