如何使用ASP.Net在API中使用JSON数组 [英] How to use JSON Array in API using ASP.Net

查看:89
本文介绍了如何使用ASP.Net在API中使用JSON数组的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨...



我必须将下面的详细信息作为输入传递到API.cs文件,用于插入客户记录,其中contactPeoples作为JSON数组,详细信息如

[{部门:1,姓名:'Manas',电子邮件:'manas.kpatil @ gmail.com',MobileNo:'1233',AlternateNo:'12344',isContactPerson:1}



所以编写传递JSON数组的代码的逻辑是什么....



另一个输入..

key

customerName

CompanyPhone

CompanyAddress1

CompanyAddress2

regionID

subregion1ID

subregion2ID

industryType1ID

industryType2ID

Hi...

I have to pass below details as input to the API.cs file for inserting customer record where contactPeoples as an JSON array with details like
[{Department:1, Name:'Manas', Email:'manas.kpatil@gmail.com' ,MobileNo : '1233', AlternateNo:'12344', isContactPerson:1}

so what will be the logic for writing the code for passing JSON array ....

Another input..
key
customerName
CompanyPhone
CompanyAddress1
CompanyAddress2
regionID
subregion1ID
subregion2ID
industryType1ID
industryType2ID

推荐答案

这篇关于如何使用ASP.Net在API中使用JSON数组的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆