public class ReportSceneClass
{
public ReportSceneClass()
{
//
//TODO: 在此处添加构造函数逻辑
//
} public string[] TicketNum{get;set;}
public string[] SalePrice { get; set; }
public string[] CostPrice{get;set;}
public string[] CommissionAmount { get; set; }
public string[] ProfitAmount { get; set; }
}写好一个类了,现在把它序列化为以下json就行了。{
"TicketNum":[11, 42, 21, 42, 32, 63, 23, 44, 75, 13, 42, 87],
"SalePrice":[10, 42, 21, 42, 32, 63, 23, 44, 75, 13, 42, 87],
"CostPrice",[10, 42, 21, 42, 32, 63, 23, 44, 75, 13, 42, 87],
"CommissionAmount":[10, 42, 21, 42, 32, 63, 23, 44, 75, 13, 42, 87],
"ProfitAmount",[10, 42, 21, 42, 32, 63, 23, 44, 75, 13, 42, 87]
}
{
public ReportSceneClass()
{
//
//TODO: 在此处添加构造函数逻辑
//
} public string[] TicketNum{get;set;}
public string[] SalePrice { get; set; }
public string[] CostPrice{get;set;}
public string[] CommissionAmount { get; set; }
public string[] ProfitAmount { get; set; }
}写好一个类了,现在把它序列化为以下json就行了。{
"TicketNum":[11, 42, 21, 42, 32, 63, 23, 44, 75, 13, 42, 87],
"SalePrice":[10, 42, 21, 42, 32, 63, 23, 44, 75, 13, 42, 87],
"CostPrice",[10, 42, 21, 42, 32, 63, 23, 44, 75, 13, 42, 87],
"CommissionAmount":[10, 42, 21, 42, 32, 63, 23, 44, 75, 13, 42, 87],
"ProfitAmount",[10, 42, 21, 42, 32, 63, 23, 44, 75, 13, 42, 87]
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货