{
"already_public": "null",
"status": "true",
"message": "Service provider added successfully",
"detail": {
"id": "1175",
"address_1": "",
"address_2": "",
"profession": "Accountant",
"city": "",
"company": "",
"email_1": "",
"email_2": "",
"firstname": "das\' feet",
"lastname": "",
"life_block": "Family",
"work_phone": "",
"mobile_phone": "",
"home_phone": "",
"fax": "",
"state": "",
"title": "",
"website": "",
"zip": "",
"ismyprovider": "1",
"privacy": "null",
"img_url": "http://localhost/mtube/uploads/blank_pic.png"
},
"inresponseto": "addServiceProvider"
}
一切,除了這條線爲什麼這個JSON無效?
"firstname": "das\' feet"
它有雙引號內的單引號確定。儘管在字符之前有一個\
,這個json被jsonlint無效。
嘗試逃避另一個斜線? 「das \\'英尺」 –
驗證,如果這裏[jsonlint](http://jsonlint.com/) – Braj
我的邏輯說逃避「\」與「\\」基本說字符串(「das \'英尺」) - 目前爲止,我知道jsonlint需要一個角色,在'被隱瞞 - 試試這可能是'das'的腳「 - 我知道這不是你想要的,但它可能證明了理論 –