📜  php 对象转换为嵌套的 json 对象 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:53:49.780000             🧑  作者: Mango

代码示例1
{ "client": {
    "build": "1.0",
    "name": "xxxxxx",
    "version": "1.0"
    },
    "protocolVersion": 4,
    "data": {
        "distributorId": "xxxx",
        "distributorPin": "xxxx",
        "locale": "en-US"
    }
}