मुफ़्त · डेवलपमेंट
JSON से Kotlin data class.
JSON उदाहरण को kotlinx.serialization के लिए Kotlin data class में बदलें, @SerialName और nullable वैकल्पिक फ़ील्ड के साथ।
Loading the calculator…
इस टूल का उपयोग कैसे करें: JSON से Kotlin data class
डेटा दर्ज करें या फ़ाइल चुनें। विकल्प बदलें, परिणाम बनाएं और कॉपी या डाउनलोड करने से पहले उसकी जांच करें।
सीमाएं और समर्थित फ़ॉर्मैट
आपका डेटा आपके उपकरण पर संसाधित होता है।
अंग्रेज़ी में तकनीकी जानकारी
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> and varying values to JsonElement. Kotlin keywords are escaped with backticks.
user_name becomes @SerialName("user_name") val userName: String; a coupon present in only one order becomes String? = null.