durable-execution-sdk-js.defaultserdes.md
December 2, 2025 ยท View on GitHub
Home > @aws/durable-execution-sdk-js > defaultSerdes
defaultSerdes variable
Default Serdes implementation using JSON.stringify and JSON.parse Wrapped in Promise.resolve() to maintain async interface compatibility Ignores context parameter since it uses inline JSON serialization
Note: Uses 'any' type intentionally as this is a generic serializer that must handle arbitrary JavaScript values. JSON.stringify/parse work with any type, and using more restrictive types would break compatibility with the generic Serdes
Signature:
defaultSerdes: Serdes<any>;