مجاني · التطوير
تحويل JSON إلى Swift Codable.
حوّل مثال JSON إلى هياكل Swift Codable مع CodingKeys للمفاتيح بصيغة snake_case والقيم الاختيارية والأنواع المتداخلة.
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.