Extended JSON serialization utilities matching kombu.utils.json.
Supports Kombu's {"__type__": marker, "__value__": encoded} envelope for
datetime, date, time, decimal, uuid, bytes, base64, and
user-registered struct types.
Summary
Functions
Serialize an Elixir term to a JSON string using Kombu's extended type tags.
Deserialize a JSON string or binary into an Elixir term, applying object_hook
to decode {"__type__": ..., "__value__": ...} envelopes.
Default object hook that decodes {"__type__": marker, "__value__": val} maps.
Reset and register the default Kombu extended JSON types.
Register a custom Elixir struct module for JSON serialization/deserialization.
Functions
Serialize an Elixir term to a JSON string using Kombu's extended type tags.
Deserialize a JSON string or binary into an Elixir term, applying object_hook
to decode {"__type__": ..., "__value__": ...} envelopes.
Default object hook that decodes {"__type__": marker, "__value__": val} maps.
Reset and register the default Kombu extended JSON types.
Register a custom Elixir struct module for JSON serialization/deserialization.
If marker is nil, the encoder output is not wrapped in {"__type__": ..., "__value__": ...}.