JSON PRC 2,通过http URL在参数中传递数组

时间:2018-10-04 06:45:02

标签: php json

我正在努力通过JSON PRC传递数组。

http://localhost/archway-core/public/api/api.php

{"jsonrpc":"2.0","method":"addUdfValue","params":{"formId":"1",**"fields":"sdf"**,"token":"1234"},"id":1}

我想通过{"fname":"kamran","age":"50"}字段

有人知道这样做吗?

1 个答案:

答案 0 :(得分:0)

好吧,我知道了这个问题,

http://localhost/archway-core/public/api/api.php

{“ jsonrpc”:“ 2.0”,“ method”:“ addUdfValue”,“ params”:{“ formId”:“ 1”,“ fields”:{“ fname”:“ kamran”,“ age”: “ 50”},“令牌”:“ 1234”},“ id”:1}