無料 · 開発
JSON から Java レコード.
JSON サンプルを Jackson の @JsonProperty 付き Java レコードに変換。任意フィールドはラッパー型、ネストしたレコードにも対応。
Loading the calculator…
使い方: JSON から Java レコード
データを入力するかファイルを選び、設定を調整して結果を生成します。コピーやダウンロードの前に結果を確認してください。
制限と対応形式
入力内容はお使いの端末で処理されます。
英語の技術説明
Needs Java 16+ and jackson-databind 2.12+. Types are inferred from the sample only. Everything is calculated in your browser; nothing you type is uploaded.
Integers map to long, decimals to double, lists to List<T>; optional fields use Long, Double or Boolean so they can be null. Java keywords get a trailing underscore.
The sample becomes public record User(long id, @JsonProperty("user_name") String userName, …) with Order and Address nested inside.