YAML को JSON में और JSON को वापस YAML में बदलें, दोनों दिशाओं में। कनवर्ट करते समय सत्यापन करता है और स्पष्ट त्रुटियां दिखाता है। सब कुछ आपके ब्राउज़र में चलता है।
YAML ⇄ JSON का उपयोग कैसे करें
दिशा चुनें: YAML से JSON या JSON से YAML।
अपना YAML या JSON इनपुट पैनल में पेस्ट करें।
परिवर्तित परिणाम कॉपी करें, या यदि इनपुट अमान्य है तो त्रुटि पढ़ें।
This converter transforms YAML into JSON and JSON into YAML, in both directions. Pick the direction, paste your input, and copy the converted result or read a clear error if the input is malformed.
Everything is processed locally in your browser, so your data stays on your device.
YAML and JSON describe the same kind of data, but with different priorities. JSON is strict and compact, which suits APIs and machines; YAML is indentation-based and easier for people to read and edit, which is why it dominates configuration files.
Each conversion parses the source first, so malformed input is caught and reported with the reason and often the line, instead of silently producing a broken result. A successful conversion therefore also tells you the input was valid.
It uses the YAML 1.2 and 1.1 compatible parser from js-yaml, covering the features you meet in practice: mappings, sequences, scalars, anchors and multi-line strings.
This is exactly the glue you need around CI pipelines, Kubernetes and Docker Compose files, and APIs that speak JSON while your config is written in YAML. It lets you move between the two without hand-editing.
One thing to know: YAML comments are dropped, because JSON has no concept of comments, and converting back generates fresh YAML without them.
अक्सर पूछे जाने वाले सवाल
यह js-yaml के YAML 1.2/1.1 संगत पार्सर का उपयोग करता है, जो सामान्य सुविधाओं को कवर करता है: मैपिंग, सीक्वेंस, स्केलर, एंकर और बहु-पंक्ति स्ट्रिंग।
कनवर्ट करने से पहले इनपुट पार्स किया जाता है, इसलिए अमान्य YAML या JSON कारण और अक्सर लाइन के साथ एक संदेश दिखाता है, जो समस्या को जल्दी पहचानने में मदद करता है।
नहीं। YAML टिप्पणियां कनवर्शन के दौरान हटा दी जाती हैं क्योंकि JSON में टिप्पणियां नहीं होती, और वापस कनवर्ट करने पर उनके बिना नया YAML बनाया जाता है।
नहीं। कनवर्शन पूरी तरह आपके ब्राउज़र में चलता है; आप जो पेस्ट करते हैं वह आपके डिवाइस से बाहर नहीं जाता।
इस टूल को एम्बेड करें
इस टूल को अपनी वेबसाइट में जोड़ें। नीचे दिया स्निपेट कॉपी करें; यह अपने आप अपडेट रहता है।
<iframe src="https://monu.tools/embed/hi/yaml-json-converter" width="100%" height="640" style="border:1px solid #e5e5e5;border-radius:12px;max-width:680px" loading="lazy" title="Monu Tools"></iframe>संबंधित टूल
अमान्य इनपुट के लिए स्पष्ट त्रुटि संदेशों के साथ JSON को ऑनलाइन फ़ॉर्मेट करें, सुंदर बनाएं और वैलिडेट करें.
JSON को मिनिफाई करें फ़ाइल आकार कम करने के लिए, या इसे उचित इंडेंटेशन के साथ सुंदर बनाएं।
JSON को CSV में और CSV को वापस JSON में रूपांतरित करें, दोनों तरह से. विभाजक चुनें, उद्धृत फ़ील्ड संभालें, और परिणाम कॉपी करें. सब कुछ आपके ब्राउज़र में चलता है.
JSON सैंपल से TypeScript इंटरफेस जनरेट करें, नेस्टेड टाइप, ऐरे और वैकल्पिक फ़ील्ड के साथ। आपके ब्राउज़र में चलता है।