Carolina Firsts look to their next step As more than 600 first-generation students prepare to graduate from the University of North Carolina at Chapel Hill and celebrate years of hard work, they â¦. Read More Â». More Spotlight Stories. How costumes unfold Eliza Doolittle strolls in.
To fix this error either change the JSON to a JSON array (e.g. [1,2,3]) or change the deserialized type so that it is a normal .NET type (e.g. not a primitive type like integer, not a collection type like an array or List<T>) that can be deserialized from a JSON object.
I'm trying to deserialize the XML below into class, with the Components deserialized into a, but can't figure out how to do so.dd a property like this to hold the list of Components: Edit: Sorry I misread that. You want to read it into a collection of strings. I just tried this below and it worked on your sample.