eed3si9n / sjson-new

a typeclass based JSON codec that's backend independent
Apache License 2.0
36 stars 19 forks source link

Fix Map in LList situation #137

Closed eed3si9n closed 3 months ago

eed3si9n commented 3 months ago

Fixes https://github.com/eed3si9n/sjson-new/issues/135

Problem

LList currently calls unbuilder.beginObject twice when there's a Map as one of the LList elements, but beginObject-endObject should be handled via the Map's codec.

Solution

This changes the code to call the second unbuilder.beginObject only when we think there's a nested LList.