0

I am converting XML file to JSON. Sample XML data:

<shifts json:Array="true"></shifts>

Output JSON:

"shifts": [
            {}
          ]

Expected output JSON:

"shifts": []

Can anyone help me on this?

  • You haven't said whether you are using some standard library for the conversion, and if so which (there are dozens, and they all do it differently), or whether you are doing the conversion "by hand". – Michael Kay Dec 21 '19 at 10:14
  • You may try online tool. https://javadev.github.io/xml-to-json/ – Valentyn Kolesnikov Feb 26 '20 at 02:40

0 Answers0