I am trying to deserialize a JSON string that looks like so:
{'type':'clientlist','client_list':[]}
I am using JavaScriptSerializer() to do it. For some reason the JavaScriptSerializer() is choking on the member 'client_list'. It doesn't give very good info. The error it gives is:
ArgumentException was unhandled:
Invalid JSON primitive: .
So, as you can see its pretty non-descriptive. I have tried all sorts of different ways of deserializing it, even like so:
Dim jss As New JavaScriptSerializer()
Dim dict As Dictionary(Of String, Object) = jss.Deserialize(Of Dictionary(Of String, Object))(json)
And it still gives that same error. Is it not possible to parse that?