Hello, was wondering if anyone can help me understand how a custom decoder should handle maps? Specifically how it might be handled inside decodeElementIndex. I'm having trouble with writing decoder that handles map<string, object>. What currently happens is it decodes one of the map keys, then it switches to class structure and after decoding the class members, it continues to decode the class members of the other key instead of ending the structure and restarting?
1 year ago
It's hard to give specific advice without seeing your code, but there's a bunch of manual accounting you need to do if you're using
. If you want an example to compare to, here's what I have in Multiplatform Settings for using the