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

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

បម្លែង XML ទៅជា JSON នៅក្នុងកម្មវិភាគរុករករបស់អ្នក - ផ្គត់ផ្គង់ទិន្នន័យបុរាណរបស់សហគ្រាសទៅក្នុងស្គ្រីប និង API សម័យទាន់។

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

XML still powers a surprising amount of enterprise infrastructure: SOAP APIs, configuration files, Office documents, RSS and Atom feeds. JSON has taken over almost everywhere else. Going XML to JSON is the bridge between the two worlds - get legacy data into a shape modern JavaScript, Python, and REST tools can consume in one line.

We parse with fast-xml-parser. Attributes become "@_attr" keys on the parent object, text content becomes "#text", and repeated tags collapse to arrays automatically. Self-closing tags map to null. Comments and processing instructions are dropped. Everything runs in your browser; no XML is uploaded.

XML

អំពី XML

XML (Extensible Markup Language) is a verbose, hierarchical text format that predates JSON. Still common in enterprise APIs, RSS feeds, Office documents, and configuration files.

JSON

អំពី JSON

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

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

  1. 01

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

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

  2. 02

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

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

  3. 03

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

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

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

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