0
votes

This is what coming in xml

<data>
         <IAmArrayOfDummy>
                    <Dummy><key>key1</language><value>temp</value></Dummy>
                    <Dummy><key>key2</language><value>temp1</value></Dummy>                     
      </IAmArrayOfDummy>
   </data>

And it converts into Json like this

"IAmArrayOfDummy":{"Dummy":[{"key":"key1","value":"temp"},{"key":"key2","value":"temp 
   Product"}]},

my model is like

 public class Model
   {
   Dummy[] IAmArrayOfDummy
    }

I am using newtonsoft.JsonConvert. I added json:Array='true' but it also not worked.

which is not correct. I want to deserailize into array of dummy.

Please suggest