Versions in this module Expand all Collapse all v1 v1.0.1 Jun 30, 2026 v1.0.0 Jun 30, 2026 Changes in this version + var ErrMaxDepthExceeded = errors.New("jsoncodec: maximum recursion depth exceeded") + var ErrMaxTokenCountExceeded = errors.New("jsoncodec: maximum token count exceeded") + func Marshal(msg proto.Message) ([]byte, error) + func Unmarshal(data []byte, msg proto.Message) error + type MarshalError struct + Cause error + Detail string + Field string + func (e *MarshalError) Error() string + func (e *MarshalError) Unwrap() error + type MarshalOptions struct + AllowPartial bool + Canonical bool + Deterministic bool + EmitDefaultValues bool + Indent string + Multiline bool + Resolver registry.MessageResolver + UseEnumNumbers bool + UseProtoNames bool + func (o MarshalOptions) Marshal(msg proto.Message) ([]byte, error) + type UnmarshalError struct + Cause error + Detail string + Field string + func (e *UnmarshalError) Error() string + func (e *UnmarshalError) Unwrap() error + type UnmarshalOptions struct + AllowPartial bool + DiscardUnknown bool + MaxTokenCount int + RecursionLimit int + Resolver registry.MessageResolver + func (o UnmarshalOptions) Unmarshal(data []byte, msg proto.Message) error