How to decode a JSON string in PHP?

后端 未结 9 1140
挽巷
挽巷 2020-12-02 02:18

I have a JSON string that looks something like this:

{\"addresses\":{\"address\":[{\"@array\":\"true\",\"@id\":\"888888\",\"@uri\":\"xyz\",\"household\":{\"@         


        
9条回答
  •  -上瘾入骨i
    2020-12-02 02:56

    Note that those "@array" and "@id" fields are invalid JSON notation, and technically they lead to unspecified behavior in JSON parsers.

提交回复
热议问题