diff --git a/zio-json/jvm/src/main/scala/zio/json/JsonEncoderPlatformSpecific.scala b/zio-json/jvm/src/main/scala/zio/json/JsonEncoderPlatformSpecific.scala index 3502c727..60b7d15f 100644 --- a/zio-json/jvm/src/main/scala/zio/json/JsonEncoderPlatformSpecific.scala +++ b/zio-json/jvm/src/main/scala/zio/json/JsonEncoderPlatformSpecific.scala @@ -74,9 +74,9 @@ trait JsonEncoderPlatformSpecific[A] { self: JsonEncoder[A] => } } - final val encodeJsonLinesPipeline: ZPipeline[Any, Throwable, A, Char] = + final lazy val encodeJsonLinesPipeline: ZPipeline[Any, Throwable, A, Char] = encodeJsonDelimitedPipeline(None, Some('\n'), None) - final val encodeJsonArrayPipeline: ZPipeline[Any, Throwable, A, Char] = + final lazy val encodeJsonArrayPipeline: ZPipeline[Any, Throwable, A, Char] = encodeJsonDelimitedPipeline(Some('['), Some(','), Some(']')) }