MCPcopy Create free account
hub / github.com/temporalio/temporal / JSONPBEncoder

Struct JSONPBEncoder

common/codec/jsonpb.go:18–21  ·  view source on GitHub ↗

JSONPBEncoder is JSON encoder/decoder for protobuf structs and slices of protobuf structs. This is an wrapper on top of jsonpb.Marshaler which supports not only single object serialization but also slices of concrete objects.

Source from the content-addressed store, hash-verified

16 // This is an wrapper on top of jsonpb.Marshaler which supports not only single object serialization
17 // but also slices of concrete objects.
18 JSONPBEncoder struct {
19 marshaler protojson.MarshalOptions
20 unmarshaler temporalproto.CustomJSONUnmarshalOptions
21 }
22)
23
24// NewJSONPBEncoder creates a new JSONPBEncoder.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected