.Net MVC 接收复杂 Json 的问题,求解决!

Dene-wang 2016-07-14 03:34:06
前台 js :

function getTestJson() {
var json1 = {
"PPR_TOA": "2016-07-13",
"Remark": "SiteA",
"WMS_WarehouseInvoicing": [
{
"P_SKU": "9780201370010",
"P_Amount": "122"
},
{
"P_SKU": "1111111111113",
"P_Amount": "133"
}
]
};


$.ajax({
type: "POST",
url: "/MyProject/Test1",
data: json1,
success: function (data) {
alert(data);
}
});

var json2 = {
"data": "{ \"PPR_TOA\": \"2016-07-14\", \"Remark\": \"SiteA工地地址\"," +
"\"WMS_WarehouseInvoicing\": [" +
"{\"P_SKU\": \"9998768985135\", \"P_Amount\": \"120\"}," +
"{\"P_SKU\": \"9780201370010\", \"P_Amount\": \"330\"}" +
"]" +
"}"
};


$.ajax({
type: "POST",
url: "/MyProject/Test2",
data: json2,
success: function (data) {
alert(data);
}
});
}



后台 Controller :

[HttpPost]
public ActionResult Test1(WMS_PPR ppr)
{
var r = pprd.AddDeliveryPPR(ppr);

if (r > 0)
{
return Content("1");
}

return View();
}

[HttpPost]
public ActionResult Test2(string data)
{
WMS_PPR resq = JsonConvert.DeserializeObject<WMS_PPR>(data);

var r = pprd.AddDeliveryPPR(resq);

if (r > 0)
{
return Content("1");
}

return View();
}


实体层 WMS_PPR 和 WMS_WarehouseInvoicing 类:

public partial class WMS_PPR
{
public WMS_PPR()
{
this.WMS_PPRD = new HashSet<WMS_PPRD>();
this.WMS_TransportInfo = new HashSet<WMS_TransportInfo>();
this.WMS_WarehouseInvoicing = new HashSet<WMS_WarehouseInvoicing>();
}

[Key]
public int PPR_ID { get; set; }
public string PPR_No { get; set; }
public Nullable<System.DateTime> PPR_TOA { get; set; }
public string Remark { get; set; }

public virtual ICollection<WMS_PPRD> WMS_PPRD { get; set; }
public virtual ICollection<WMS_TransportInfo> WMS_TransportInfo { get; set; }
public virtual ICollection<WMS_WarehouseInvoicing> WMS_WarehouseInvoicing { get; set; }
}


public partial class WMS_WarehouseInvoicing
{
[Key]
public int WI_ID { get; set; }
public string P_SKU { get; set; }
public Nullable<decimal> P_Amount { get; set; }
public Nullable<System.DateTime> CreateTime { get; set; }
public string WI_Remark { get; set; }


[ForeignKey("PPR_ID")]
public virtual WMS_PPR WMS_PPR { get; set; }
[ForeignKey("P_ID")]
public virtual WMS_Product WMS_Product { get; set; }
[ForeignKey("W_ID")]
public virtual WMS_WarehouseInfo WMS_WarehouseInfo { get; set; }

public virtual ICollection<WMS_Delivery> WMS_DeliveryInput { get; set; }
public virtual ICollection<WMS_Delivery> WMS_DeliveryOutput { get; set; }
}



问题是这样的,前台写了两个 ajax 来请求controll Json1 和Json 2

json1是json对象 后台用Test1 (WMS_PPR) 来接收 的时候 json 这个节点:WMS_WarehouseInvoicing 显示接收到count=2 但是里面的数据都为Null,但是PPR_TOA,Remark 这两个都接收到了.

用json2 字符串类型的json格式去请求,后台用JsonConvert转一下 就可以接收到值了。。。

请问 json1 对象 为什么 后台WMS_PPR类型 接收不到(以前 简单的json对象就可以接受,只是没有里面的 [] )
...全文
460 23 打赏 收藏 转发到动态 举报
写回复
用AI写文章
23 条回复
切换为时间正序
请发表友善的回复…
发表回复
丶羊茅山 2020-04-20
  • 打赏
  • 举报
回复
引用 22 楼 qq175299882 的回复:
楼主你好,我也遇到和你一样的问题,请问你解决了吗?能教下我吗
抱歉挖法,我也遇到了这个问题,已经解了,关键就是加上get;set; 但我看这个贴好像没有解决问题 举个例子 我有一个类 searchInfo{ page:1, totalPage:10, pageSize:30 searchDetail:{ name:"", creator:"" } } 这是我有问题的对象,我后端只有searchDetail里的东西是null,其他都能正常接收到 但我一直都是这么个写法,肯定不需要我单独再写个反射来解决这个问题 后来我发现其实是我searchInfo里定义的searchDetail没有写get;set;
qq175299882 2017-03-07
  • 打赏
  • 举报
回复
楼主你好,我也遇到和你一样的问题,请问你解决了吗?能教下我吗
LcGyAn 2016-07-18
  • 打赏
  • 举报
回复
引用 18 楼 DeneImp 的回复:
我觉得 我还是有必要说一下,我想直接传json对象,后台 对象接受,而不是字符串, 比如

var json1 = {
            "PPR_TOA": "2016-07-13",
            "Remark": "SiteA",
            "WMS_WarehouseInvoicing": [
                {
                    "P_SKU": "9780201370010",
                    "P_Amount": "122"
                },
                {
                    "P_SKU": "1111111111113",
                    "P_Amount": "133"
                }
            ]
        };
 $.ajax({
        type: "POST",
        url: "/MyProject/Test1",
        data: json1,
        success: function (data) {
            alert(data);
        }
    });
后台直接实体类接收,

 [HttpPost]
 public ActionResult ReplenishmentNotice(WMS_PPR resq)
 {
}
现在只是json对象里面 包含了数组,,,
JQuqey 帮你转成json格式的字符串没有对象一说,F12查看网络
猴头 2016-07-17
  • 打赏
  • 举报
回复
JsonObject JsonArray 直接转换直接区
wx8849 2016-07-15
  • 打赏
  • 举报
回复
引用 10 楼 wx8849 的回复:
你的实体对象应该有问题,要不然是不会接收不到的

public class WMS_WarehouseInvoicing
{
    /// <summary>
    /// 9780201370010
    /// </summary>
    public string P_SKU { get; set; }
    /// <summary>
    /// 122
    /// </summary>
    public string P_Amount { get; set; }
}

public class Root
{
    /// <summary>
    /// 2016-07-13
    /// </summary>
    public DateTime PPR_TOA { get; set; }
    /// <summary>
    /// SiteA
    /// </summary>
    public string Remark { get; set; }
    /// <summary>
    /// WMS_WarehouseInvoicing
    /// </summary>
    public List<WMS_WarehouseInvoicing> WMS_WarehouseInvoicing { get; set; }
}

根据你的json 生成的实体对象 ,你可以试试
wx8849 2016-07-15
  • 打赏
  • 举报
回复
你的实体对象应该有问题,要不然是不会接收不到的

public class WMS_WarehouseInvoicing
{
    /// <summary>
    /// 9780201370010
    /// </summary>
    public string P_SKU { get; set; }
    /// <summary>
    /// 122
    /// </summary>
    public string P_Amount { get; set; }
}

public class Root
{
    /// <summary>
    /// 2016-07-13
    /// </summary>
    public DateTime PPR_TOA { get; set; }
    /// <summary>
    /// SiteA
    /// </summary>
    public string Remark { get; set; }
    /// <summary>
    /// WMS_WarehouseInvoicing
    /// </summary>
    public List<WMS_WarehouseInvoicing> WMS_WarehouseInvoicing { get; set; }
}

请叫我官人 2016-07-15
  • 打赏
  • 举报
回复
用List吧
Dene-wang 2016-07-15
  • 打赏
  • 举报
回复
我觉得 我还是有必要说一下,我想直接传json对象,后台 对象接受,而不是字符串, 比如

var json1 = {
            "PPR_TOA": "2016-07-13",
            "Remark": "SiteA",
            "WMS_WarehouseInvoicing": [
                {
                    "P_SKU": "9780201370010",
                    "P_Amount": "122"
                },
                {
                    "P_SKU": "1111111111113",
                    "P_Amount": "133"
                }
            ]
        };
 $.ajax({
        type: "POST",
        url: "/MyProject/Test1",
        data: json1,
        success: function (data) {
            alert(data);
        }
    });
后台直接实体类接收,

 [HttpPost]
 public ActionResult ReplenishmentNotice(WMS_PPR resq)
 {
}
现在只是json对象里面 包含了数组,,,
Dene-wang 2016-07-15
  • 打赏
  • 举报
回复
引用 14 楼 wx8849 的回复:
[quote=引用 13 楼 DeneImp 的回复:] [quote=引用 11 楼 wx8849 的回复:] [quote=引用 10 楼 wx8849 的回复:] 你的实体对象应该有问题,要不然是不会接收不到的

public class WMS_WarehouseInvoicing
{
    /// <summary>
    /// 9780201370010
    /// </summary>
    public string P_SKU { get; set; }
    /// <summary>
    /// 122
    /// </summary>
    public string P_Amount { get; set; }
}

public class Root
{
    /// <summary>
    /// 2016-07-13
    /// </summary>
    public DateTime PPR_TOA { get; set; }
    /// <summary>
    /// SiteA
    /// </summary>
    public string Remark { get; set; }
    /// <summary>
    /// WMS_WarehouseInvoicing
    /// </summary>
    public List<WMS_WarehouseInvoicing> WMS_WarehouseInvoicing { get; set; }
}

根据你的json 生成的实体对象 ,你可以试试[/quote] 我用EF自动生成的 有区别么

namespace Web_SJWD.Models.DataModel_WMS
{
    using Newtonsoft.Json;
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    
    public partial class WMS_PPR
    {
        public WMS_PPR()
        {
            this.WMS_PPRD = new HashSet<WMS_PPRD>();
            this.WMS_TransportInfo = new HashSet<WMS_TransportInfo>();
            this.WMS_WarehouseInvoicing = new HashSet<WMS_WarehouseInvoicing>();
        }
    
        [Key]
        public int PPR_ID { get; set; }
        public string PPR_LOL_Address { get; set; }
        public Nullable<System.DateTime> PPR_TOA { get; set; }
        public Nullable<System.DateTime> PPR_LoadTime { get; set; }
        public Nullable<System.DateTime> PPR_UnloadTime { get; set; }
        public string Remark { get; set; }

        public virtual ICollection<WMS_PPRD> WMS_PPRD { get; set; }
        public virtual ICollection<WMS_TransportInfo> WMS_TransportInfo { get; set; }
        public virtual ICollection<WMS_WarehouseInvoicing> WMS_WarehouseInvoicing { get; set; }
    }
}

namespace Web_SJWD.Models.DataModel_WMS
{
    using Newtonsoft.Json;
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    
    public partial class WMS_WarehouseInvoicing
    {
        [Key]
        public int WI_ID { get; set; }
        public Nullable<int> W_ID { get; set; }
        public Nullable<int> PPR_ID { get; set; }
        public string PPR_No { get; set; }
        public Nullable<int> P_ID { get; set; }
        public string P_SKU { get; set; }
        public Nullable<decimal> P_Amount { get; set; }

        #region NotMapped

        [NotMapped]
        public WD_Employee Staff { get; set; }
        [NotMapped]
        public WD_CompanyInfo Company { get; set; }
        #endregion

        
        [ForeignKey("PPR_ID")]
        public virtual WMS_PPR WMS_PPR { get; set; }
        [ForeignKey("P_ID")]
        public virtual WMS_Product WMS_Product { get; set; }
        [ForeignKey("W_ID")]
        public virtual WMS_WarehouseInfo WMS_WarehouseInfo { get; set; }

        public virtual ICollection<WMS_Delivery> WMS_DeliveryInput { get; set; }
        public virtual ICollection<WMS_Delivery> WMS_DeliveryOutput { get; set; }
    }
}

var json1 = {
            "PPR_TOA": "2016-07-13",
            "Remark": "SiteA",
            "WMS_WarehouseInvoicing": [
                {
                    "P_SKU": "9780201370010",
                    "P_Amount": "122"
                },
                {
                    "P_SKU": "1111111111113",
                    "P_Amount": "133"
                }
            ]
        };
[/quote] 区别在于你的json 里面有些字段没有[/quote] 不管 补全不补全字段的问题, 你这样 那为什么 这两个 字段 PPR_TOA,Remark 有值?
Dene-wang 2016-07-15
  • 打赏
  • 举报
回复
引用 9 楼 DeneImp 的回复:
[quote=引用 8 楼 q646926099 的回复:] json数组的话 你后台对应的应该也是List集合把
json字符串 我说了 ,我会,我问的是json对象, 看清楚我的 json 格式 然后能告诉我 后台怎么list接受?[/quote] 请问 为什么 我的 这两个 字段 PPR_TOA,Remark 有值?
  • 打赏
  • 举报
回复
我昨晚回复了一个在 ashx 中“接受复杂Json”的例子:http://bbs.csdn.net/topics/391984594 在 #12 楼。 实际上,http get、post 通讯是很简单的东西,用不着太复杂、繁琐的属性配置。一切看起来都是很直观的。如果你要自己写一个“引擎”,几行代码而已。
wx8849 2016-07-15
  • 打赏
  • 举报
回复
引用 13 楼 DeneImp 的回复:
[quote=引用 11 楼 wx8849 的回复:] [quote=引用 10 楼 wx8849 的回复:] 你的实体对象应该有问题,要不然是不会接收不到的

public class WMS_WarehouseInvoicing
{
    /// <summary>
    /// 9780201370010
    /// </summary>
    public string P_SKU { get; set; }
    /// <summary>
    /// 122
    /// </summary>
    public string P_Amount { get; set; }
}

public class Root
{
    /// <summary>
    /// 2016-07-13
    /// </summary>
    public DateTime PPR_TOA { get; set; }
    /// <summary>
    /// SiteA
    /// </summary>
    public string Remark { get; set; }
    /// <summary>
    /// WMS_WarehouseInvoicing
    /// </summary>
    public List<WMS_WarehouseInvoicing> WMS_WarehouseInvoicing { get; set; }
}

根据你的json 生成的实体对象 ,你可以试试[/quote] 我用EF自动生成的 有区别么

namespace Web_SJWD.Models.DataModel_WMS
{
    using Newtonsoft.Json;
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    
    public partial class WMS_PPR
    {
        public WMS_PPR()
        {
            this.WMS_PPRD = new HashSet<WMS_PPRD>();
            this.WMS_TransportInfo = new HashSet<WMS_TransportInfo>();
            this.WMS_WarehouseInvoicing = new HashSet<WMS_WarehouseInvoicing>();
        }
    
        [Key]
        public int PPR_ID { get; set; }
        public string PPR_LOL_Address { get; set; }
        public Nullable<System.DateTime> PPR_TOA { get; set; }
        public Nullable<System.DateTime> PPR_LoadTime { get; set; }
        public Nullable<System.DateTime> PPR_UnloadTime { get; set; }
        public string Remark { get; set; }

        public virtual ICollection<WMS_PPRD> WMS_PPRD { get; set; }
        public virtual ICollection<WMS_TransportInfo> WMS_TransportInfo { get; set; }
        public virtual ICollection<WMS_WarehouseInvoicing> WMS_WarehouseInvoicing { get; set; }
    }
}

namespace Web_SJWD.Models.DataModel_WMS
{
    using Newtonsoft.Json;
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    
    public partial class WMS_WarehouseInvoicing
    {
        [Key]
        public int WI_ID { get; set; }
        public Nullable<int> W_ID { get; set; }
        public Nullable<int> PPR_ID { get; set; }
        public string PPR_No { get; set; }
        public Nullable<int> P_ID { get; set; }
        public string P_SKU { get; set; }
        public Nullable<decimal> P_Amount { get; set; }

        #region NotMapped

        [NotMapped]
        public WD_Employee Staff { get; set; }
        [NotMapped]
        public WD_CompanyInfo Company { get; set; }
        #endregion

        
        [ForeignKey("PPR_ID")]
        public virtual WMS_PPR WMS_PPR { get; set; }
        [ForeignKey("P_ID")]
        public virtual WMS_Product WMS_Product { get; set; }
        [ForeignKey("W_ID")]
        public virtual WMS_WarehouseInfo WMS_WarehouseInfo { get; set; }

        public virtual ICollection<WMS_Delivery> WMS_DeliveryInput { get; set; }
        public virtual ICollection<WMS_Delivery> WMS_DeliveryOutput { get; set; }
    }
}

var json1 = {
            "PPR_TOA": "2016-07-13",
            "Remark": "SiteA",
            "WMS_WarehouseInvoicing": [
                {
                    "P_SKU": "9780201370010",
                    "P_Amount": "122"
                },
                {
                    "P_SKU": "1111111111113",
                    "P_Amount": "133"
                }
            ]
        };
[/quote] 区别在于你的json 里面有些字段没有
Dene-wang 2016-07-15
  • 打赏
  • 举报
回复
引用 11 楼 wx8849 的回复:
[quote=引用 10 楼 wx8849 的回复:] 你的实体对象应该有问题,要不然是不会接收不到的

public class WMS_WarehouseInvoicing
{
    /// <summary>
    /// 9780201370010
    /// </summary>
    public string P_SKU { get; set; }
    /// <summary>
    /// 122
    /// </summary>
    public string P_Amount { get; set; }
}

public class Root
{
    /// <summary>
    /// 2016-07-13
    /// </summary>
    public DateTime PPR_TOA { get; set; }
    /// <summary>
    /// SiteA
    /// </summary>
    public string Remark { get; set; }
    /// <summary>
    /// WMS_WarehouseInvoicing
    /// </summary>
    public List<WMS_WarehouseInvoicing> WMS_WarehouseInvoicing { get; set; }
}

根据你的json 生成的实体对象 ,你可以试试[/quote] 我用EF自动生成的 有区别么

namespace Web_SJWD.Models.DataModel_WMS
{
    using Newtonsoft.Json;
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    
    public partial class WMS_PPR
    {
        public WMS_PPR()
        {
            this.WMS_PPRD = new HashSet<WMS_PPRD>();
            this.WMS_TransportInfo = new HashSet<WMS_TransportInfo>();
            this.WMS_WarehouseInvoicing = new HashSet<WMS_WarehouseInvoicing>();
        }
    
        [Key]
        public int PPR_ID { get; set; }
        public string PPR_LOL_Address { get; set; }
        public Nullable<System.DateTime> PPR_TOA { get; set; }
        public Nullable<System.DateTime> PPR_LoadTime { get; set; }
        public Nullable<System.DateTime> PPR_UnloadTime { get; set; }
        public string Remark { get; set; }

        public virtual ICollection<WMS_PPRD> WMS_PPRD { get; set; }
        public virtual ICollection<WMS_TransportInfo> WMS_TransportInfo { get; set; }
        public virtual ICollection<WMS_WarehouseInvoicing> WMS_WarehouseInvoicing { get; set; }
    }
}

namespace Web_SJWD.Models.DataModel_WMS
{
    using Newtonsoft.Json;
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    
    public partial class WMS_WarehouseInvoicing
    {
        [Key]
        public int WI_ID { get; set; }
        public Nullable<int> W_ID { get; set; }
        public Nullable<int> PPR_ID { get; set; }
        public string PPR_No { get; set; }
        public Nullable<int> P_ID { get; set; }
        public string P_SKU { get; set; }
        public Nullable<decimal> P_Amount { get; set; }

        #region NotMapped

        [NotMapped]
        public WD_Employee Staff { get; set; }
        [NotMapped]
        public WD_CompanyInfo Company { get; set; }
        #endregion

        
        [ForeignKey("PPR_ID")]
        public virtual WMS_PPR WMS_PPR { get; set; }
        [ForeignKey("P_ID")]
        public virtual WMS_Product WMS_Product { get; set; }
        [ForeignKey("W_ID")]
        public virtual WMS_WarehouseInfo WMS_WarehouseInfo { get; set; }

        public virtual ICollection<WMS_Delivery> WMS_DeliveryInput { get; set; }
        public virtual ICollection<WMS_Delivery> WMS_DeliveryOutput { get; set; }
    }
}

var json1 = {
            "PPR_TOA": "2016-07-13",
            "Remark": "SiteA",
            "WMS_WarehouseInvoicing": [
                {
                    "P_SKU": "9780201370010",
                    "P_Amount": "122"
                },
                {
                    "P_SKU": "1111111111113",
                    "P_Amount": "133"
                }
            ]
        };
xiaoqiu_net 2016-07-15
  • 打赏
  • 举报
回复
同上,昨天就是说的这个意思。
Dene-wang 2016-07-14
  • 打赏
  • 举报
回复
引用 8 楼 q646926099 的回复:
json数组的话 你后台对应的应该也是List集合把
json字符串 我说了 ,我会,我问的是json对象, 看清楚我的 json 格式 然后能告诉我 后台怎么list接受?
xiaoqiu_net 2016-07-14
  • 打赏
  • 举报
回复
json数组的话 你后台对应的应该也是List集合把
xiaoqiu_net 2016-07-14
  • 打赏
  • 举报
回复
你这json也不复杂啊。前台jquery直接把json当作字符串,后台对应的类的结构对应好,直接反序列化这个json就可以了啊。我做了很多啊。
Dene-wang 2016-07-14
  • 打赏
  • 举报
回复
把ajax 该设置的参数设置了,不行的。 还有 我问的是json对象。不是json字符串,JSON.stringify是可以,但是不是我问的 请问 json1 对象 为什么 后台WMS_PPR 类里的 WMS_WarehouseInvoicing类 没有接收到数据,但是显示 count=2 var json1 = { "PPR_TOA": "2016-07-13", //后台接收到数据, "Remark": "SiteA", //后台接收到数据, "WMS_WarehouseInvoicing": [ //没有接收到, { "P_SKU": "9780201370010", "P_Amount": "122" }, { "P_SKU": "1111111111113", "P_Amount": "133" } ] }; 这样是可以的。, var json1 = { "PPR_TOA": "2016-07-13", "Remark": "SiteA" };
  • 打赏
  • 举报
回复
  $.ajax({
                    method: "POST",
                    url: "@ViewBag.DataUrl",
                    dataType: "json",
                    contentType: "application/json; charset=utf-8",
                    data: JSON.stringify({
                        pageIndex: self.PageIndex(),
                        pageSize: self.PageSize(),
                        sortField: self.SortField(),
                        sortDirection: self.SortDirection(),
                        parameters:self.SearchModel()
                    }),
                    success: function (data) {

                        if (data.Success) {
                            self.DataList(data.Data);
                            self.PageCount(data.PageCount);
                            self.TotalCount(data.TotalCount);
                            self.InitPageNav(data.PageCount);
                        }
                        else {
                            alert("获取数据列表失败:" + data.Message);
                        }
                    }
                });
  • 打赏
  • 举报
回复
jquery 的 ajax方法有几个可选参数, 1. datatype:预期服务器返回的数据类型 2. contentType:发送信息至服务器时内容编码类型 详细可参考:jQuery ajax - ajax() 方法 当你发送了json格式数据的时候,如果没有指定数据的编码类型时,浏览器发起请求的时候会在请求头部给你一个默认的编码类型,当服务器接到这个请求的时候,会用那个默认的编码类型处理数据,就导致了第一个方法接收到的数据不是你想要的 可以参考这个文章看下,ajax请求ContentType的设置 所以在你发起请求的时候,发送什么样格式的数据给服务器,你就告诉服务器你的数据格式(即设置ajax请求的contentType):
  $.ajax({
                    method: "POST",
                    url: "@ViewBag.DataUrl",
                    dataType: "json",
                    contentType: "application/json; charset=utf-8",
                    data: JSON.stringify({
                        pageIndex: self.PageIndex(),
                        pageSize: self.PageSize(),
                        sortField: self.SortField(),
                        sortDirection: self.SortDirection(),
                        parameters:self.SearchModel()
                    }),
                    success: function (data) {

                        if (data.Success) {
                            self.DataList(data.Data);
                            self.PageCount(data.PageCount);
                            self.TotalCount(data.TotalCount);
                            self.InitPageNav(data.PageCount);
                        }
                        else {
                            alert("获取数据列表失败:" + data.Message);
                        }
                    }
                });
另外 可以了解下JSON.stringify 这个方法
加载更多回复(3)

62,074

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术交流专区
javascript云原生 企业社区
社区管理员
  • ASP.NET
  • .Net开发者社区
  • R小R
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

.NET 社区是一个围绕开源 .NET 的开放、热情、创新、包容的技术社区。社区致力于为广大 .NET 爱好者提供一个良好的知识共享、协同互助的 .NET 技术交流环境。我们尊重不同意见,支持健康理性的辩论和互动,反对歧视和攻击。

希望和大家一起共同营造一个活跃、友好的社区氛围。

试试用AI创作助手写篇文章吧