RevealTheme logo

XML'den JSON'a Dönüştürücü

XML belgelerini JSON'a dönüştürün. Öznitelikler @ önekli anahtarlara dönüştürülür; tekrarlanan etiketler dizilere dönüştürülür.

Bu araç nasıl kullanılır

  1. 1

    Paste or type your XML into the input box.

  2. 2

    Read the converted JSON in the output panel below, which updates as you type.

  3. 3

    If the XML is malformed, fix the error shown in red and the output will reappear.

  4. 4

    Select the JSON from the output panel to copy it into your project.

XML'den JSON'a Dönüştürücü nedir?

XML'den JSON'a geçiş bazı açılardan kayıplıdır: XML, JSON'da doğrudan karşılığı olmayan ad alanlarını, işleme talimatlarını ve CDATA bölümlerini destekler. Bu dönüştürücü vakaların %90'ını ele alır: iç içe geçmiş öğeler, öznitelikler (@ önekiyle) ve metin içeriği (#text). Karmaşık XML için özel bir kütüphane gerekebilir.

Yaygın kullanım örnekleri

  • Inspect a SOAP or legacy XML API response as JSON before wiring it into a JavaScript front end.

  • Convert an RSS or Atom feed snippet into JSON to prototype a parser quickly.

  • Turn a config file or build manifest written in XML into JSON to eyeball its structure.

  • Pull values out of an XML sitemap or data export when a JSON shape is easier to traverse.

  • Teach or learn how attributes, repeated tags, and text nodes map between the two formats.

  • Sanity-check that a small XML payload is well-formed, since malformed input shows a parser error.

Sıkça sorulan sorular

@ öneki nedir?
Öznitelikler, aynı ada sahip alt öğelerden ayırt edilmeleri için @öznitelikadı olarak saklanır.

İlgili araçlar