मुफ़्त · डेवलपमेंट
JSON से Pydantic मॉडल.
JSON उदाहरण को Pydantic v2 मॉडल में बदलें: snake_case फ़ील्ड, मूल कुंजियों के उपनाम, वैकल्पिक फ़ील्ड और नेस्टेड क्लास।
Loading the calculator…
इस टूल का उपयोग कैसे करें: JSON से Pydantic मॉडल
डेटा दर्ज करें या फ़ाइल चुनें। विकल्प बदलें, परिणाम बनाएं और कॉपी या डाउनलोड करने से पहले उसकी जांच करें।
सीमाएं और समर्थित फ़ॉर्मैट
आपका डेटा आपके उपकरण पर संसाधित होता है।
अंग्रेज़ी में तकनीकी जानकारी
Types are inferred from the sample only. Everything is calculated in your browser; nothing you type is uploaded.
Fields missing from some array items or null in the sample become optional (X | None = None); integers and decimals merge to float; differing types become Any. Python keywords get a trailing underscore.
A user with isActive, an address and a list of orders becomes User, Address and Order models; isActive becomes is_active with alias "isActive".