Close
AlgoliaLogoLight
Close full mode
logo

JSON to C# Classes

Git RepositoryEdit on Github

Example JSON data

{
"id": 1,
"name": "Peter",
"lastname": "Parker"
}

Steps

  1. Create your .cs class
  2. Copy your JSON data
  3. Select Edit => Paste Special => Paste JSON As Classes Paste JSON As Classes

Result

using System;
namespace Ex.Models
{
public class Rootobject
{
public int id { get; set; }
public string name { get; set; }
public string lastname { get; set; }
}
}
Loading comments...