阅读背景:

我可以在没有中间字符串转换的情况下将JSON对象图转换为.NET类吗?

来源:互联网 

My C# application receives JSON data which needs to be deserialized to strongly-typed objects, but I need to manipulate the JSON properties during conversion. Ideally I would like to deserialise to a JSON object graph, manipulate properties, and then convert the resulting graph to the .NET type. However, there seems to be no way of doing this except by serializing the modified graph back to a string, and then deserialize that string to the .NET type, which seems wasteful.My C# application receives JSON data which need




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

分享到: