如何从json中删除Double Quotes?

时间:2016-09-19 04:20:09

标签: c# json json.net

我有一个json字符串如下。

"{
  "stepno": 1,
  "content": "dddd",
  "icon": "plug icon",
  "header": "Uptime Guarantee",
  "headcolor": "ffffff",
  "tagline": "Check out our plug-in marketplace",
  "taglinecolor": "ffffff",
  "isActive": true
}"

我想从以下属性中删除双引号。

"{
stepno: 1,
content:'', 
icon:'plug icon',  
header:'Uptime Guarantee',
headcolor:'ffffff', 
tagline:'Check out our plug-in marketplace',
taglinecolor:'ffffff',
isActive:true
}"

我该怎么做?请告诉我。

1 个答案:

答案 0 :(得分:-1)

您可以使用mysql_real_escape_string()。它将删除引号。