Trosi XML i JSON yn eich porwr - cyflenwi data mentrau hynafol i sgriptiau a APIau modern.
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.
Rydym yn dadansoddi gyda fast-xml-parser. Mae atributau yn dod yn allwedd "@_attr" ar y gwrthrych rhieni, mae cynnwys testun yn dod yn "#text", a mae tagiau sy'n cael eu hailadrodd yn cwympo i arrïau yn awtomatig. Mae tagiau hunan-gaeedig yn mapio i null. Mae sylwadau a chyfarwyddiadau prosesu yn cael eu dileu. Mae popeth yn rhedeg yn eich porwr; nid oes XML yn cael ei lwytho i fyny.
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 (JavaScript Object Notation) yw'r lingua franca ar gyfer data strwythuredig ar y we. Arriau, gwrthrychau, llinynnau, rhifau, booleanau. Darllenir gan bob iaith raglennu modern.
Llusgwch ffeil XML ar y trawsnewidydd uchod, neu cliciwch y blwch i ddewis un o'ch dyfais.
Rydym wedi rhag-ddewis JSON fel y fformat allbwn. Newidiwch ef o'r ddewislen ostwng os ydych eisiau targed gwahanol.
Cliciwch Trosi a disgwylwch i'r bar cynnydd orffen. Lawrlwythwch y JSON pan fo'n barod.
Trawsffurfio arae JSON o wrthrychau i ffeil CSV - gludwch i Excel, Google Sheets, neu unrhyw offer taflen waith.
Trosi ffeil CSV i JSON yn eich porwr - perffaith ar gyfer mewnosod taflenni gwaith i sgriptiau, APIau, neu LLMau.
Trosi cyfluniad YAML i JSON ar gyfer offer, APIau a sgriptiau sy'n ffafrio syntacs JSON.