/// <summary> /// Gets a JSON representation for this error suitable for cross-domain /// </summary> /// <returns></returns> public string ToDetailedJson() { var serializer = new JavaScriptSerializer(); return(serializer.Serialize(new { GUID, ApplicationName, CreationDate = CreationDate.ToEpochTime(), CustomData, DeletionDate = DeletionDate.ToEpochTime(), Detail, DuplicateCount, ErrorHash, HTTPMethod, Host, IPAddress, IsProtected, MachineName, Message, SQL, Source, StatusCode, Type, Url, QueryString = ServerVariables != null ? ServerVariables["QUERY_STRING"] : null, ServerVariables = ServerVariablesSerialzable.ToJsonDictionary(), CookieVariables = CookiesSerialzable.ToJsonDictionary(), QueryStringVariables = QueryStringSerialzable.ToJsonDictionary(), FormVariables = FormSerialzable.ToJsonDictionary() })); }