zio / zio-json

Fast, secure JSON library with tight ZIO integration.
https://zio.dev/zio-json
Apache License 2.0
401 stars 143 forks source link

encodeJsonArrayPipeline produces incorrect JSON when stream is empty #1114

Closed amsavchuk closed 1 month ago

amsavchuk commented 1 month ago

Hi, I reproduced the issue https://github.com/zio/zio-json/issues/972 in tests and wrote a fix for that. Also, I added a test that wasn't merged from https://github.com/zio/zio-json/pull/1101. Please, take a look on my PR.