JSON to C# class
JSON to C# class — JSON. Processed on your device.
Input
Example only; use “Try an example” to fill it in.
Load file
Files are processed in this browser, without uploading.
JSON
Result —
Processed on your device · Free to use · No sign-up
Example input and output
Input
{"name":"Alice","age":28,"active":true,"tags":["tools"]}Result
#nullable enable
using System.Collections.Generic;
using System.Text.Json.Serialization;
public class Root {
[JsonPropertyName("name")]
public string name { get; set; } = default!;
[JsonPropertyName("age")]
public long age { get; set; } = default!;
[JsonPropertyName("active")]
public bool active { get; set; } = default!;
[JsonPropertyName("tags")]
public string[] tags { get; set; } = default!;
}How to use
- Enter or paste your content, or try the example.
- Run the tool and review the output.
- Copy your result or explore a related tool below.
Input format & limitations
JSON to C# class — JSON. Processed on your device.
Frequently asked questions
Do I need to upload data or sign up?
Local tools do not send input. IP and DNS lookups send the query and connection IP to the listed third parties only after a click.