Backslash present in Json
高洛峰
高洛峰 2017-05-16 13:03:52
0
1
842

The json parsing result is null

Simulated json data:

{
"Json parsing":"Support formatting highlight folding",
"Support XML conversion":"Support XML conversion to Json, Json to XML",
"Json format verification": "More detailed and accurate error messages",
"medicine_size": "1.5\ml"
}

The problem is that \ cannot appear alone. I can only use str_replace() to replace this single backslash. How to avoid this problem in general development?

高洛峰
高洛峰

拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...

reply all(1)
仅有的幸福

You can try transcoding

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template