M
M
Max Tux2019-10-05 13:29:15
PHP
Max Tux, 2019-10-05 13:29:15

json string to make in php?

Hello Guru! Do not tell me how to convert the json string (response from the server) to php?

{
    "UserLevel":"5",
    "LatestVersion":{
        "type":"rom",
        "device":"hammerhead",
        "name":"Nexus5 4.6.11",
        "description":"MIUI",
        "descriptionUrl":"http:\/\/update.miui.com\/updates\/update_info\/4.6.11\/hammerhead_0_4.6.11_en_02b68481fe57c1718a18195d74acf071.html",
        "md5":"169eb657b8d231f14cd8d29a3aa49138",
        "filename":"miui_Nexus5_4.6.11_169eb657b8_4.4.zip",
        "filesize":"345M",
        "codebase":"4.4",
        "version":"4.6.11",
        "branch":"D"
    },
    "UpdateList":[
        {
            "type":"rom",
            "device":"hammerhead",
            "name":"Nexus5 4.6.6",
            "description":"",
            "descriptionUrl":"http:\/\/update.miui.com\/updates\/update_info\/4.6.6\/hammerhead_0_4.6.6_en_d80b8c581744e42022f310021c4b67ba.html",
            "md5":"49ebbcf3a158354e30206d4570ab9cce",
            "filename":"miui_Nexus5_4.6.6_49ebbcf3a1_4.4.zip",
            "filesize":"346M",
            "codebase":"4.4",
            "version":"4.6.6",
            "branch":"X"
        }
    ],
    "IncrementalUpdateList":[
        {
            "type":"ota",
            "device":"hammerhead",
            "name":"Nexus5 4.6.11 OTA From 4.6.6",
            "descriptionUrl":"http:\/\/update.miui.com\/updates\/update_info\/4.6.11\/hammerhead_4.6.6_4.6.11_en_02b68481fe57c1718a18195d74acf071.html",
            "description":"MIUI",
            "md5":"2bff04543f1bc564de62d03d13c2f89c",
            "filename":"miui-ota-hammerhead-4.6.6-4.6.11-2bff04543f-4.4.zip",
            "filesize":"9.0M",
            "codebase":"4.4",
            "version":"4.6.11",
            "versionForApply":"4.6.6",
            "branch":"D"
        }
    ],
    "MirrorList":[
        "http:\/\/bigota.d.miui.com"
    ],
    "Signup":{
        "version":"4.6.6",
        "total":"10000",
        "rank":"10000"
    },
    "AuthResult":1,
    "ForceUpdate":0,
    "Cta":1
}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
mark_me, 2019-10-05
@alpha919

https://www.php.net/manual/en/function.json-decode.php

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question