为了账号安全,请及时绑定邮箱和手机立即绑定

如何构造一个C#类以转换为JSON数据并将其从POST提交示例发送到网站?

如何构造一个C#类以转换为JSON数据并将其从POST提交示例发送到网站?

C#
慕的地10843 2021-03-30 17:14:13
我有此POST示例数据,我想构建相应的c#类来填充它们,然后以导致如下所示的请求的方式调用POST(/ api / stockupload)。我怎样才能做到这一点?可以使用JSON吗?POST /api/stockupload200 OK 140 bytes 336 msPARAMETERS: articles[0][article_id]: 4654-AB-XG     articles[0][brand_id]: 30     articles[0][quantity]: 80     articles[0][prices][1]: 5.30     articles[0][prices][3]: 5.80     articles[0][prices][12]: 5.99     articles[1][article_id]: AB8888-123     articles[1][brand_id]: 80     articles[1][quantity]: 35     articles[1][prices][1]: 4.25     articles[1][prices][2]: 6.30     articles[1][prices][8]: 5在此先感谢您的帮助。
查看完整描述

1 回答

  • 1 回答
  • 0 关注
  • 167 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信