Skip to content

Commit 279aae7

Browse files
author
mwatson
committed
Avoid json reference loop errors
1 parent 7424064 commit 279aae7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Src/StackifyLib/Utils/HelperFunctions.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,8 @@ public static string SerializeDebugData(object logObject, bool serializeSimpleTy
196196
return JsonConvert.SerializeObject(jObject,
197197
new JsonSerializerSettings()
198198
{
199-
NullValueHandling = NullValueHandling.Ignore
199+
NullValueHandling = NullValueHandling.Ignore,
200+
ReferenceLoopHandling = ReferenceLoopHandling.Ignore
200201
});
201202
}
202203

0 commit comments

Comments
 (0)