How can i DeSerialize a Json String looking like this:
[[5389809,"*Bella*@",0,"",0,"","y",1],[9888723,"bizarre",0,"",0,"","y",1],[9889781,"violate",0,"",0,"","y",1],[1510819,"xeno",1,"",0,"","y",1]]
i tried using an Object Class like:
Public Class MyFriendsList
Public Property Array() As List(Of CategoryContainer)
End Class
Public Class CategoryContainer
Public Property id As Integer
Public Property user As String
End Class
but that does not work.
Error is:
Newtonsoft.Json.JsonSerializationException: “Cannot deserialize the
current JSON array (e.g. [1,2,3]) into type ‘xMessenger.MyFriendsList’
because the type requires a JSON object (e.g. {“name”:”value”}) to
deserialize correctly. To fix this error either change the JSON to a
JSON object (e.g. {“name”:”value”}) or change the deserialized type to
an array or a type that implements a collection
Thanks for any Ideas!