Fix an error structure JSON serialization issue.