Open baldodavi opened 6 years ago
You can probably workaround that by using having a reference to a System.Collections.Generic.List< System.Nullable<long>>
in your code. This will generate the proper missing class for you.
Just create one such list in a method, or inherit a dummy class from it, and the proper code will be generated.
That happened because you only use an array of System.Nullable<long>
but the serializer internally works with List< System.Nullable<long>>
.
I'm also pasting a previous comment of mine below. I think that JSON.NET implementation has some workarounds for AOT, so it might be useful.
There's a supported JSON.NET package on the asset store. It used to be paid, but the developer made it free after a deal.
The developer from SaladLab (of this integration) has been missing for a long time now, so I don't recommend using it for new projects and, if possible, use the json solution from the asset store.
Really Thanks!
Source/destination types
Source/destination JSON
{"ids":[15968,15962,15963,15964,15965,15966,15967]}
Steps to reproduce
used on a c# ios Unity project using always il2cpp