Deserialising JSON with asdf when a field is unexpectedly null

Anonymouse zorael at gmail.com
Sat Apr 5 21:35:59 UTC 2025


On Wednesday, 2 April 2025 at 16:47:36 UTC, Sergey wrote:
> ```d
> struct S
> {
>     static struct Inner
>     {
>         string s = "foo";
>     }
>
>     @serdeOptional
>     Nullable!(Inner) inner = Inner.init;
> }
> ```
>
> seems working

Thanks!


More information about the Digitalmars-d-learn mailing list