[英]How can i remove Double Quotes from json?
I have a json string as follows. 我有一个JSON字符串如下。
"{
"stepno": 1,
"content": "dddd",
"icon": "plug icon",
"header": "Uptime Guarantee",
"headcolor": "ffffff",
"tagline": "Check out our plug-in marketplace",
"taglinecolor": "ffffff",
"isActive": true
}"
I want to remove double quotes from properties like follow. 我想从以下属性中删除双引号。
"{
stepno: 1,
content:'',
icon:'plug icon',
header:'Uptime Guarantee',
headcolor:'ffffff',
tagline:'Check out our plug-in marketplace',
taglinecolor:'ffffff',
isActive:true
}"
How can i do this? 我怎样才能做到这一点? Please Advice me.
请给我建议。
您可以使用mysql_real_escape_string()。它将删除引号。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.