The JSON codec accepts malformed JSON strings like `{}}`, `"foo""` without error. Reproducer: https://scastie.scala-lang.org/guersam/IFS2CO8dRGiNpsQhId3u3A/5