Convert JSON to C# Online

Form for JSON converting to csharp

This form allows you convert JSON to C# Class:

Press F11 to switch to fullscreen mode
Your result can be seen below.

Result of JSON conversion to C# Class

Press F11 to switch to fullscreen mode
Move to "Paste Code" for Saving

About JSON conversion to Csharp Class

About JSON conversion to C# Class

The JSON to C# Converter was created for online transform JSON object into C# class. The attributes in json object are converted into methods in C# class.

How it Works?

Just paste your JSON object to the textarea above and click to the button "Convert" and you will get C# code.

Example of strip C# tags

Before:
{
    "animals":{
	    "dog":[
		    {"name":"Rufus","breed":"labrador","count":1,"twoFeet":false},
		    {"name":"Marty","breed":"whippet","count":1,"twoFeet":false}
	    ],
	    "cat":{"name":"Matilda"}
    }
}
After:
public class DogItem
{
        public string name { get; set; }
        public string breed { get; set; }
        public int count { get; set; }
        public string twoFeet { get; set; }
}

public class Cat
{
        public string name { get; set; }
}

public class Animals
{
        public List <DogItem> dog { get; set; }
        public Cat cat { get; set; }
}

public class Root
{
        public Animals animals { get; set; }
}
After the conversion, you can apply the C# code to your project or use it for some other purpose.