var jsonString ="{ "
jsonString += "name:" + Data.name+",";
jsonString += "surname:"+ Data.surname+",";
jsonString += "Address: " + Data.add;
jsonString += "}"
我正在为 Ajax 调用创建以下 json 字符串。但是当地址字段中有“,”时。它给了我错误。谁能告诉我在javascript中为ajax调用创建json字符串的正确方法