【Visual Studio】JSONからクラスを生成できるようにするツール「Microsoft ASP.NET and Web Tools」
概要
「Microsoft ASP.NET and Web Tools」をインストールすることで
JSONからクラスを生成できるようになります
使用方法
- JSONをコピーする
- メニューの「編集>形式を選択して貼り付け>JSONをクラスとして貼り付ける」を選択する

例
次のようなJSONをコピーして上記の手順を踏むと
{
"mId" : 25,
"mName" : "ピカチュウ",
"mHeight" : 0.4,
"mWeight" : 6.0
}
下記のようなクラスが生成できます
public class Rootobject { public int mId { get; set; } public string mName { get; set; } public float mHeight { get; set; } public float mWeight { get; set; } }