KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have the following XML file that I need to convert to JSON in the server. Initially I thought I would convert it to a Dictionary and then use the JavaScriptSerializer to turn it into JSON but since each column could have a different value type, I don't think it would work. Has anyone done something similar before in C#/LINQ? I need to preserve the Value Types(Boolean, String, Integer) of each column. I would appreciate any advice on this as Im just starting to work with XML. Thanks. <Columns> <Column Name="key1" DataType="Boolean">True</Column> <Column Name="key2" DataType="String">Hello World</Column> <Column Name="key3" DataType="Integer">999</Column> </Columns>
Tags (comma-separated)
Save Edits
Cancel