បម្លែងការកំណត់រចនាសម្ព័ន្ធ YAML ទៅជា JSON សម្រាប់ឧបករណ៍, API និងស្គ្រីបដែលចូលចិត្តវេយ្យាករណ៍ 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 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 (JavaScript Object Notation) គឺជាភាសាសាមញ្ញសម្រាប់ទិន្នន័យរចនាសម្ព័ន្ធនៅលើវែប។ អារេ (arrays), អុបទិច (objects), ខ្សែអក្សរ (strings), លេខ (numbers), ប៊ូលីយ៉ែន (booleans)។ អាចអានបានដោយភាសាកម្មវិធីសម័យទំនើបរាល់ភាសា។
អូស YAML មួយទៅលើរបងបម្លែងខាងលើ ឬចុចប្រអប់ដើម្បីជ្រើសពីឧបករណ៍របស់អ្នក។
យើងបានជ្រើសរើស JSON ជាទ្រង់ទ្រាយបញ្ចេញ។ ផ្លាស់វាពីបញ្ជីចុះក្រោម ប្រសិនបើអ្នកចង់គោលដៅផ្សេង។
ចុច Convert និងរង់ចាំរបារដំណើរការឲ្យបញ្ចប់។ ទាញយក JSON ពេលវាធ្វើរួច។
បម្លែងឯកសារកំណត់ JSON ទៅជា YAML ដែលងាយស្រួលអានសម្រាប់មនុស្ស — Kubernetes, GitHub Actions និង Docker Compose ចូលចិត្តវា។
បម្លែងឯកសារ CSV ទៅជា JSON ក្នុងកម្មវិធីរុករករបស់អ្នក — ល្អសម្រាប់បញ្ជូនតារាងទៅកាន់ស្គ្រីប, API, ឬ LLM។
រាលបញ្ច្រាស់អារេ JSON នៃវត្ថុទៅជាឯកសារ CSV - បិទវាចូល Excel, Google Sheets, ឬឧបករណ៍សៀវភៅតារាងណាមួយ។