Starts a JSON serialization task and exposes its id for tracking or cancellation.
Data to serialize.
Optional serialization options.
Task id and promise resolving to serialization result.
Serializes data to JSON using the worker pool or main-thread fallback.
Data to serialize.
Optional serialization settings.
Serialization result.
Starts a JSON deserialization task and exposes its id for tracking or cancellation.
JSON string to deserialize.
Optional deserialization options.
Task id and promise resolving to deserialization result.
Deserializes JSON using the worker pool or main-thread fallback.
JSON string to deserialize.
Optional deserialization options.
Deserialization result.
Returns statistics for the shared worker pool.
Pool metrics including workers and active tasks.
Manages JSON serialization and deserialization tasks using the shared worker pool.
Source