Closed sgamerw closed 5 years ago
Odin is not a classical json deserializer in how it maps the json string to C# data - it needs the json to be annotated with a lot of metadata and be structured in a certain way to be able to reconstruct C# data from it, due to the particular features that Odin serializer needs to support (recursive references, type polymorphism, multiple target data formats, etc). As such, while your json string is perfectly valid json, Odin serializer cannot quite use it.
For deserializing your particular data, you'd be better served using Newtonsoft's Json.NET, a far more general-purpose json serializer, as you should only use Odin serializer to deserialize json data that it has itself serialized. Json support in Odin serializer is mainly intended for having an easily human-readable data format for debugging.
ok, got it, thanks.
How to deserialize json string to array data ?
and this is my model
I try to run these
but it returns null.