yaml से json (YAML -> JSON)
APIs और tooling के लिए YAML configuration को JSON में convert करें।
YAML, JSON, और TOML को दोनों दिशाओं में convert करें। Text paste करें और तुरंत formatted output पाएँ।
YAML JSON TOML conversion पूरी तरह आपके browser में चलती है, और आपकी input कभी server पर नहीं भेजी जाती।
APIs और tooling के लिए YAML configuration को JSON में convert करें।
आसानी से पढ़े जाने वाले config files के लिए JSON को YAML में convert करें।
Application settings के लिए JSON को TOML में convert करें।
इनपुट
app: name: demo enabled: true retries: 3
आउटपुट
{
"app": {
"name": "demo",
"enabled": true,
"retries": 3
}
}
इनपुट
{"title":"demo","timeout":30}
आउटपुट
title = "demo" timeout = 30
हाँ, लेकिन anchors और aliases expand हो सकते हैं या खो सकते हैं क्योंकि JSON और TOML में equivalent reference model नहीं है।
हाँ। YAML implicit typing "01" या yes/no/on/off जैसी values को अलग तरह interpret कर सकती है। ज़रूरत हो तो values को explicitly quote करें।
UTF-8 मानी जाती है। Japanese और अन्य multibyte text जैसी की तैसी संभाली जाती है।
नहीं। Round-trip conversion में comments सुरक्षित नहीं रहतीं, विशेषकर क्योंकि JSON comments support नहीं करती।
नहीं। Conversion पूरी तरह आपके browser में की जाती है।