フォーマッター&コード
JSON to C# Class
Generate POCO classes from a JSON sample.
編集者注
Understanding · Two libraries, one mental model.
この詳細な解説章は現在、英語版のみで提供されています。上の変換ツールはあなたの言語で動作しますが、長文の解説記事はまだ翻訳されていません。
よくある質問
Quick answers.
›How does the tool handle nested objects?
The generator recursively scans your JSON structure to create separate, linked classes for each nested object level. It ensures that complex hierarchies are mapped to a structured class model.
›What attributes are added to the classes?
The tool can include `[JsonPropertyName]` or `[JsonProperty]` attributes to ensure proper deserialization when JSON keys use different naming conventions than C# properties. This supports both System.Text.Json and Newtonsoft.Json libraries.
›How are data types determined?
It infers types based on the JSON values: integers become `int` or `long`, decimals become `double` or `decimal`, and ISO dates are mapped to `DateTime`. If a value is null, the tool defaults to `object` or a nullable type.
›Is my data sent to any external server?
No. The conversion logic is executed entirely within your web browser. Neither your JSON structure nor the resulting C# code is transmitted or stored on any server.
他の人はこちらも検索しています
関連ツール
More in this room.
- JSON to TypeScript InterfaceJSONサンプルから型を推測し、TSインターフェースを出力します。
- JSON to Java POJOJSONサンプルからJava POJOを出力します。
- JSON to Python DataclassJSONから型ヒント付きのdataclass(オプションでPydantic)を生成します。
- JSON to Go Structjson:`タグ`付きのGoらしいstructを生成します。
- JSON to Kotlin Data Class任意のJSONサンプルに対応する簡潔なデータクラスを生成します。
- JSON to JSON SchemaサンプルからJSON Schemaドキュメントを推測します。