首页
Tom Utilities

YAML 转 JSON

XML 与 YAML 工具

将 YAML 文档转换为 JSON,用于 API 和 JavaScript 应用。

输入

结果

使用方法

Converting YAML to JSON

Press Convert to serialise the parsed YAML as JSON.

  1. Paste YAML into the input editor.
  2. Press Convert.
  3. Copy the JSON output.

常见问题

How many documents are converted?

The first document in a multi document stream is converted.

Are numeric keys supported?

Yes, keys are converted to strings because JSON requires string keys.