将JSON转换为C#的类

本篇文章属于技巧,是将一个JSON格式的字符串,转换成一个C#的类。

原文地址:CONVERT JSON TO A C# CLASS


这个技巧是应用在Visual Studio2013所有的,如果没有Visual Studio 2013,那么Take a look atjson2csharp.com. Using the online tool, you simply paste your JSON string and it will convert it online for you.

there is a sneaky little trick that you can use in Visual Studio 2013 to automatically convert a JSON string to a C# class.


If you copy json string to your clipboard, and then navigate to Visual Studio, you can select Edit -> Paste Special -> Paste JSON as Classes.

将JSON转换为C#的类_第1张图片



你可能感兴趣的:(json,C#)