阅读背景:

如何基于json结构创建C#类结构?

来源:互联网 

I am using a Javascript library which expects data to be in a certain json format as show below. I will use .NET to get the data and feed it to the library using json deserialization. However I am not sure how C# classes are serialized to json. Will the built-in .NET json serializer support this json structure or do I have to invest in a more advanced library like json.net? I never used json.net. My approach is to do several trial and error approaches creating different C# classes and looking at the output json until the json structure matches the format below. This seems inefficient and time consuming and I wanted to know if there's a better approach.I am using a Javascript library which expects d




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: