zio / zio-schema

Compositional, type-safe schema definitions, which enable auto-derivation of codecs and migrations.
https://zio.dev/zio-schema
Apache License 2.0
141 stars 161 forks source link

JsonCodec can now encode/decode streams as JSON arrays. #739

Closed gregor-rayman closed 3 weeks ago

gregor-rayman commented 3 weeks ago

Whether the codec will treat streams as arrays is governed by JsonCodec.Config.treatStreamsAsArrays which defaults to false to keep it compatible with the previous version.