Webwrite in json format not working
12 次查看(过去 30 天)
显示 更早的评论
I was trying to write to an server using REST API. I tried it using POSTMAN it was working. The data i am trying to write is in json format. I gave Content type as json and Mediatype as application/json. requestmethod as post. The erro message is "The srver returned the status 415 with message unsupported media type".
4 个评论
Guillaume
2019-7-24
Can you also show the working json that you sent via postman?
Is it correct that you have both a mimetype and a mimeType property and both a Name and name property in your JSON? It's unusual to have properties that differ just by case (and horrendous design!)
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 JSON Format 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!