For whatever reason, I would get an infinite loop of recursion in "WriteValue" within the JsonMapper.cs (I believe from line 808) whenever serializing my struct that had this:
public static MyStruct zero { get { return new MyStruct(0,0); } }
It would eventually error out with a maxDepth error once depth hit 101 (an expected max depth)
Adding the second check to my new line 814 fixed the issue:
if (p_info.CanRead && !p_info.GetGetMethod().IsStatic) {
For whatever reason, I would get an infinite loop of recursion in "WriteValue" within the JsonMapper.cs (I believe from line 808) whenever serializing my struct that had this: public static MyStruct zero { get { return new MyStruct(0,0); } }
It would eventually error out with a maxDepth error once depth hit 101 (an expected max depth)
Adding the second check to my new line 814 fixed the issue: if (p_info.CanRead && !p_info.GetGetMethod().IsStatic) {
Hope this helps! Thanks for your time, Steven