【发布时间】:2015-04-02 10:29:29
【问题描述】:
据我所知,urlread 函数可以发布到 URL。我是用字符串做的。
urlread(url, 'Post', {'userId', userid, 'Password', Password}
但是有一些像这样的 JSON 值:
"country": ["US","JP"],
"student": false,
我试过这段代码,但失败了。
urlread(url,'Post',{'userId', userid ,'Password' ,Password ,'country' ,'{'US' ,'JP'}' ,'student' ,false}
如何将数据从 Matlab 以 JSON 格式发布到 RESTful 服务器?
【问题讨论】:
标签: arrays json matlab post urlread