保留多行格式
保留標量(| literal, > folded)正確。換行符保持在 YAML 保留的位置。
Kubernetes manifests, GitHub Actions workflows, dbt configs, Helm charts — YAML is what config looks like in 2026. JSON is what config-as-data looks like. The translation comes up daily. Morph runs js-yaml in your browser tab — anchors resolved, references inlined, multi-line strings preserved. The YAML stays where it was. The JSON saves locally. Free for everything that runs on your device; AI is paid in credits.
js-yaml — 瀏覽器中運行的解析器,JS 生態系統最常使用的解析器 —— 完全符合規範。
&anchor / *reference patterns inlined into the JSON. Merge keys (<<:) handled correctly.
保留標量(| literal, > folded)正確。換行符保持在 YAML 保留的位置。
縮進的 JSON 便於閱讀。API 呼叫使用壓縮版本。兩者均有效。
YAML 是人類編寫配置時使用的格式。JSON 是機器讀取的格式。大多數工具都接受兩者——但大多數 CI 管道、大多數 API、大多數驗證工具需要 JSON。Morph 在您的標籤頁中運行 js-yaml——解析了錨點和引用,保留了多行塊標量,輸出符合規範。相同的 $4.99 覆蓋了 Morph 的其餘功能。
yq 和 js-yaml CLI 需要安裝及學習曲線。線上工具會排隊並加水印。Morph 在瀏覽器中運作 — 拖放、下載。
是的。&anchor / *ref 模式內聯到 JSON 中。合併鍵 (<<:) 正確處理。
兩種塊標量樣式均正確保留 — Literal 和 Folded。
解析器預設採用 YAML 1.2(現代規範)。1.1 過渡(yes/no 作為布林值、八進位數字)可配置。
是的。放入 YAML 資料夾,取得 JSON。免費方案無批次限制。
是的——轉換是免費的。Morph Pro每月$4.99可解鎖其他功能。