-
Notifications
You must be signed in to change notification settings - Fork 66
Closed
Description
Hi.
Looks like the LitJson used for serialization does not properly handle GUID types.
Minimum code to reproduce it:
public class AnythingWithGuid
{
public Guid Id { get; set; }
}
[TestMethod]
public void SerializeObjectContainingGuid_ThrowsError()
{
var obj = new AnythingWithGuid();
JsonMapper.ToJson(obj);
Assert.IsNotNull(obj);
}
The error: ThirdParty.LitJson.JsonException: Max allowed object depth reached while trying to export from type System.Guid.
Is there any workaround for it? Is such behavior documented?
Might be related: #109
Thanks,
Mateusz
Metadata
Metadata
Assignees
Labels
No labels