lukewilliamboswell / roc-json

Json package for Roc
https://lukewilliamboswell.github.io/roc-json/
Universal Permissive License v1.0
21 stars 13 forks source link

fix decoding nested partial record when extra field is last #16

Closed WhileTruu closed 7 months ago

WhileTruu commented 7 months ago

This PR fixes https://github.com/lukewilliamboswell/roc-json/issues/15.

Break instead of Continue is used here when encountering a } in field skipping, so that decoding nested objects where an extra field is last doesn't result in an erroneous break with InvalidObject.