Serializes error context to formatted JSON string for copying.
The error context to serialize
Formatted JSON string
Serializes error context to formatted JSON string for copying.