PasteZap
🌐 हिन्दी
मुफ़्त · बिना खाते के

मुफ़्त · डेवलपमेंट

JSON से Swift Codable.

JSON उदाहरण को Swift Codable struct में बदलें, snake_case कुंजियों के लिए CodingKeys, optional और नेस्टेड टाइप के साथ।

शुरू करने से पहले

कुछ तकनीकी नियंत्रण अंग्रेज़ी में हैं। Unicode टेक्स्ट समर्थित है; फ़ाइल फ़ॉर्मैट और परिणाम की भाषाएं टूल पर निर्भर हैं।

तकनीकी सीमाएं नीचे अंग्रेज़ी में दी गई हैं। बड़ी फ़ाइलों को संसाधित करने या परिणाम का उपयोग करने से पहले इन्हें जांचें।

Loading the calculator…

इस टूल का उपयोग कैसे करें: JSON से Swift Codable

डेटा दर्ज करें या फ़ाइल चुनें। विकल्प बदलें, परिणाम बनाएं और कॉपी या डाउनलोड करने से पहले उसकी जांच करें।

सीमाएं और समर्थित फ़ॉर्मैट

आपका डेटा आपके उपकरण पर संसाधित होता है।

अंग्रेज़ी में तकनीकी जानकारी

Types are inferred from the sample only. Everything is calculated in your browser; nothing you type is uploaded.

Integers map to Int, decimals to Double, arrays to [T]; optional or null fields become optionals. A small JSONValue enum is added when a field’s type varies.

user_name becomes let userName: String with case userName = "user_name" in CodingKeys.