PrivTab

Chuyển YAML sang JSON

Chuyển đổi giữa YAML và JSON

Chạy trong trình duyệt · Không tải lên

Hiện tại công cụ này và hướng dẫn trên trang vẫn bằng tiếng Anh. Nó hoạt động y như vậy: mọi thứ chạy trong trình duyệt của bạn.

Convert
  • Không có gì rời khỏi thiết bị của bạn
  • Máy chủ không giới hạn kích thước
  • Không đăng ký, không hình mờ
  • Miễn phí

How to convert YAML to JSON

  1. Choose the direction: YAML to JSON or JSON to YAML.
  2. Paste your text, open a file, or try the example.
  3. Copy or download the result.

Good to know

  • A file with several YAML documents (separated by ---) becomes a JSON array.
  • YAML comments are not part of JSON, so they are left out of the JSON.
  • Values such as .inf and .nan have no JSON equivalent and become null; the page points this out.
  • YAML follows version 1.2, so yes, no, on and off stay text instead of turning into true and false.
  • Very deeply nested aliases ("billion laughs") are stopped to keep your browser responsive.

Câu hỏi thường gặp

Why did "yes" not become true?

In YAML 1.2, which this converter follows, only true and false are booleans. Older YAML 1.1 tools also turned yes, no, on and off into booleans, which caused surprises such as the country code NO becoming false.

Is my data uploaded?

No. Everything happens in your browser, and the page is blocked from uploading anything.