据我所知, 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}
如何以 JSON 格式将数据从 Matlab 发布到 RESTful 服务器?