YAML to JSON 変換
「YAML to JSON 変換」はコード、データと QRに使えるブラウザツールです。入力内容と結果は通常この端末内で処理され、登録は必要ありません。
使い方
使い方
- Paste one YAML 1.2 document up to 100,000 characters.
- Choose compact JSON or pretty output with two- or four-space indentation.
- Convert, review the JSON, then copy it or download a .json file.
A bounded YAML 1.2 conversion
The parser accepts one YAML 1.2 document and rejects duplicate mapping keys, multiple documents, unknown tags, cycles, and alias expansion beyond 50 references. Comments are accepted but do not exist in JSON output. Merge keys are treated as ordinary YAML 1.2 keys rather than automatically merging objects.
Only JSON-safe values reach the result
Mappings must use scalar keys that can become unique JSON object keys. Complex keys, NaN, and Infinity are rejected. Integers outside JavaScript’s safe range are emitted as JSON strings so their digits stay exact. The conversion runs locally and does not execute YAML content as code.
よくある質問
あわせて知りたいこと
Can I convert a multi-document YAML stream?
No. Enter exactly one YAML document so the page can produce one unambiguous JSON root value.
Are anchors and aliases supported?
Ordinary aliases can be expanded up to the safety limit. Cycles and excessive expansion are rejected because JSON cannot represent them safely.
What happens to YAML comments?
They are discarded because JSON has no comment syntax.