GameplayTags icon indicating copy to clipboard operation
GameplayTags copied to clipboard

Can't serialize/deserialize GameplayTag and GameplayTagContainer with Newtonsoft Json

Open rurumi0318 opened this issue 1 month ago • 0 comments

GameplayTag and GameplayTagContainer can't be serialized to JObject with Newtonsoft Json, one of the built-in package.

[System.Serializable]
public class MyClass
{
    public GameplayTag tag;
    public GameplayTagContainer tagContainer;
}

JObject.FromObject(myClassInstance);

The error message

JsonSerializationException: Self referencing loop detected for property 'ParentTag' with type 'BandoWare.GameplayTags.GameplayTag'. Path 'tag.ParentTag.ParentTag'.

rurumi0318 avatar Nov 12 '25 16:11 rurumi0318