Creating new JsonSerializerOptions instances is expensive as each instance creates internal caches and converters.
By reusing these static instances, we significantly reduce memory allocations and improve performance.
These options are thread-safe and can be used concurrently across the application.
⌘I
Assistant
Responses are generated using AI and may contain mistakes.