使用PHP从json post解码数组

时间:2017-10-09 06:09:32

标签: php json

我正在开发一个使用RestFul api的Web应用程序,这个api有时会在webhook上发送一个json的帖子,json中的数组是:

DTE.ExecuteCommand("Debug.BreakAll");

为了在php上解码这个数组我使用

[
    "address" => "example",
    "hash160" => "example",
    "balance" => example,
    "received" => example,
    "sent" => example,
    "unconfirmed_received" => 0,
    "unconfirmed_sent" => 0,
    "unconfirmed_transactions" => 0,
    "total_transactions_in" => 4,
    "total_transactions_out" => 10,
    "category" => "donations",
    "tag" => "example"
]

这是解码json的正确方法吗?它能用吗?

0 个答案:

没有答案