sunjw / jstoolnpp

A JavaScript (JSON) tool for Notepad++ (formerly JSMinNpp) and Visual Studio Code.
GNU General Public License v2.0
283 stars 24 forks source link

[Feature Request] XML <--> JSON conversion #70

Closed LordChariot closed 5 years ago

LordChariot commented 5 years ago

[Feature Request] XML <--> JSON conversion

How about a quick XML to JSON conversion tool, much like the Json.NET does?

Convert back and forth between:

{
  "?xml": {
    "@version": "1.0",
    "@standalone": "no"
  },
  "root": {
    "person": [
      {
        "@id": "1",
        "name": "Alan",
        "url": "http://www.google.com"
      },
      {
        "@id": "2",
        "name": "Louis",
        "url": "http://www.yahoo.com"
      }
    ]
  }

<?xml version='1.0' standalone='no'?>
<root>
  <person id='1'>
    <name>Alan</name>
    <url>http://www.google.com</url>
  </person>
  <person id='2'>
    <name>Louis</name>
    <url>http://www.yahoo.com</url>
  </person>
</root>

Have an option to use single quote or quotes in attribute delimiter ( ' vs " )

<person id='1'>
<person id="1">

https://www.newtonsoft.com/json/help/html/ConvertingJSONandXML.htm

sunjw commented 5 years ago

Good idea.

sunjw commented 5 years ago

Won't do this.