Spike UK
asked on
How dio I create a JSON array in vb.net using Newtonsoft.JSON
How do I create a JSON array in vb.net using Newtonsoft.JSON (json.net) from this xml string;
<?xml version="1.0" encoding="UTF-8"?>
<result>
<version>2</version>
<name>ListResult1</name>
<model_name>ENGLISH</model _name>
<my_list>test</my_list>
<myitems>
<item>
<name>thing1</name>
<enabled>true</enabled>
<threshold>0.5</threshold>
<types1/>
</item>
<item>
<name>thing2</name>
<enabled>true</enabled>
<threshold>0</threshold>
<types1s/>
</item>
<item>
<name>thing3</name>
<enabled>true</enabled>
<threshold>0.4</threshold>
<types1>
<item>
<otherthing1>text2</othert hing1>
<enabled>true</enabled>
<otherthing2>0</otherthing 2>
<otherthing3>true</otherth ing3>
</item>
</types1>
</item>
</myitems>
</result>
<?xml version="1.0" encoding="UTF-8"?>
<result>
<version>2</version>
<name>ListResult1</name>
<model_name>ENGLISH</model
<my_list>test</my_list>
<myitems>
<item>
<name>thing1</name>
<enabled>true</enabled>
<threshold>0.5</threshold>
<types1/>
</item>
<item>
<name>thing2</name>
<enabled>true</enabled>
<threshold>0</threshold>
<types1s/>
</item>
<item>
<name>thing3</name>
<enabled>true</enabled>
<threshold>0.4</threshold>
<types1>
<item>
<otherthing1>text2</othert
<enabled>true</enabled>
<otherthing2>0</otherthing
<otherthing3>true</otherth
</item>
</types1>
</item>
</myitems>
</result>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Very clear - thanks
You simply can convert using this code below-
Open in new window