Home > Backend Development > PHP Tutorial > 没有双引号的JSON格式,有什么办法用PHP解开吗解决方案

没有双引号的JSON格式,有什么办法用PHP解开吗解决方案

WBOY
Release: 2016-06-13 10:06:22
Original
1058 people have browsed it

没有双引号的JSON格式,有什么办法用PHP解开吗
没有双引号的JSON格式,有什么办法用PHP解开吗。
格式如:{name: "brandId1", type: "String1"}
json的标准格式应该是key有双引号,目前第三方数据无引号,请问有什么办法可以解开为数组吗

------解决方案--------------------

PHP code
$s = 
                 
              
              
        
            
Copy after login
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template