Error "sdsdf"

Apr 24, 2008 at 2:48 AM
In JsonSerializer.cs there is a throw new Exception("sdsdf") near line 522. I tripped across this when the object I was trying to deserialize into was an IList<>.

I assume this isn't finished yet? Is there any way to deserialize a set of JSON objects into a IList of a custom object?
Coordinator
Apr 26, 2008 at 1:20 AM
The logic is complete, I just took a short cut when throwing the exception and never updated the message to be something meaningful. That error happens when the deserializer is unable to create an object because it has no public constructor.

Do you have a simple code example of what you are trying to do?
Apr 26, 2008 at 4:12 PM
Not really, the basic premise was that I had a string where one property related to an IList<> of another object. However, I might have been improperly forming the JSON anyway, so I've simply rewritten it so that those subobjects come back as a set of strings, which I then loop through and deserialize into my List<> of objects.

Hard to explain, but I've worked around it and it might have been my own fault anyway. :)