gchq / CyberChef

The Cyber Swiss Army Knife - a web app for encryption, encoding, compression and data analysis

Home Page:https://gchq.github.io/CyberChef

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feature request: XML to JSON

mark05e opened this issue · comments

Is your feature request related to a problem? Please describe.
There are xml documents that I work with and I find it hard to read xml when compared to json. It would be useful to have a function to covert between xml and json.

Describe the solution you'd like
When I bring in an xml content, I would like to change it to json as output.

Describe alternatives you've considered
Use 3rd party websites 🤷‍♂️

Additional context
Example from https://www.w3schools.com/xml/note.xml

<note>
<to>Tove</to>
<from>Jani</from>
<heading>Reminder</heading>
<body>Don't forget me this weekend!</body>
</note>

Using https://codebeautify.org/xmltojson

{
  "note": {
    "to": "Tove",
    "from": "Jani",
    "heading": "Reminder",
    "body": "Don't forget me this weekend!"
  }
}