A Temporal PayloadConverter backed by zio-json and a CodecRegistry.
Encoding: looks up a JsonEncoder by the value's runtime class. Decoding: looks up a JsonDecoder by the requested generic Type (not just raw class), so List[Foo] and List[Bar] dispatch distinctly.
The encodingName argument controls the Temporal payload-encoding metadata string this converter claims. Default is "json/zio". A second instance in the chain with "json/plain" is used purely for decode — it lets recorded workflow histories that were originally written with Temporal's Jackson-based DefaultDataConverter (and therefore carry encoding=json/plain) replay through zio-json, since json/plain is just vanilla JSON and the registry's decoders handle it identically.
Throws DataConverterException with a specific message if a codec is missing — this should not happen for types exercised via zio-temporal's typed stubs/workers (the compile-time gate ensures registration) but can occur for untyped stubs or manual payload manipulation.
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
trait PayloadConverterclass Objecttrait Matchableclass Any