XmlToJson icon indicating copy to clipboard operation
XmlToJson copied to clipboard

Error with json array

Open InnCreator opened this issue 4 years ago • 1 comments

Hello. I have a trouble with convert json to xml.

if I have json in format:

{
     "Questions": [
           {},
           {},
           {}
       ] 
}

then I would like get xml in format:

<Questions>
        <Question>...</Question>
        <Question>...</Question>
        <Question>...</Question>
</Questions>

but I get xml in format:

<Questions>...</Questions>
<Questions>...</Questions>
<Questions>...</Questions>

I think parser dont correct work with array

InnCreator avatar Aug 13 '21 08:08 InnCreator

Hi @InnCreator,

You may try this json

{
  "Questions": {
    "Question": [
      {
      },
      {
      },
      {
      }
    ]
  },
  "#omit-xml-declaration": "yes"
}

javadev avatar Apr 14 '22 04:04 javadev