Skip to content

포매터 및 코드

JSON을 C# 클래스로

Generate POCO classes from a JSON sample.

Runs in your browser

편집자 노트

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.

모두 보기 포매터 및 코드