Subformer
ឥតគិតថ្លៃ · មិនចាំបាច់ចុះឈ្មោះ · រត់នៅក្នុង browser របស់អ្នក
YAML
JSON

YAML ទៅ JSON កម្មវិធីបម្លែង

បម្លែងការកំណត់រចនាសម្ព័ន្ធ YAML ទៅជា JSON សម្រាប់ឧបករណ៍, API និងស្គ្រីបដែលចូលចិត្តវេយ្យាករណ៍ JSON។

ហេតុអ្វីត្រូវបំលែង YAML ទៅជា JSON?

YAML to JSON is what you want when a tool that only speaks JSON needs to consume a config that was authored in YAML. Most CI systems, JavaScript scripts, and REST APIs prefer JSON. The conversion is lossless in structure - only the syntax changes.

We parse YAML with the yaml library (full YAML 1.2 support), then stringify to indented JSON. Multi-document YAML files (separated by --- markers) emit only the first document; use a downstream split for multi-doc workflows. Comments are dropped (JSON doesn't support them). Everything runs locally.

YAML

អំពី YAML

YAML is a human-friendly data serialization format - indentation-based, less noisy than JSON, ideal for config files. Used by Kubernetes, CI pipelines, and most modern DevOps tooling.

JSON

អំពី JSON

JSON (JavaScript Object Notation) គឺជា​ភាសាសាមញ្ញសម្រាប់ទិន្នន័យរចនាសម្ព័ន្ធនៅលើវែប។ អារេ (arrays), អុបទិច (objects), ខ្សែអក្សរ (strings), លេខ (numbers), ប៊ូលីយ៉ែន (booleans)។ អាចអានបានដោយភាសាកម្មវិធីសម័យទំនើបរាល់ភាសា។

របៀបបម្លែង YAML ទៅ JSON

  1. 01

    ទម្លាក់ឯកសារ YAML របស់អ្នក

    អូស YAML មួយទៅលើរបងបម្លែងខាងលើ ឬចុចប្រអប់ដើម្បីជ្រើសពីឧបករណ៍របស់អ្នក។

  2. 02

    JSON បានជ្រើសរើសរួចហើយ

    យើងបានជ្រើសរើស JSON ជាទ្រង់ទ្រាយបញ្ចេញ។ ផ្លាស់វាពីបញ្ជីចុះក្រោម ប្រសិនបើអ្នកចង់គោលដៅផ្សេង។

  3. 03

    បម្លែង ហើយទាញយក

    ចុច Convert និងរង់ចាំរបារដំណើរការ​ឲ្យបញ្ចប់។ ទាញយក JSON ពេលវាធ្វើរួច។

សំណួរញឹកញាប់អំពី YAML ទៅ JSON

មើលទំរង់ទាំងអស់ →