You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I encounter a serialization issue in a test that use Verify which use this library to serialize data.
I have a field that I want to ignore and it doesn't seem to work.
From the documentation, there is two ways to ignore a field, by using JsonIgnore or NonSerialized attribute.
I have tested the two options and reproduced it in this simple snippet :
voidMain(){varproduct=new Data
{Name="Test",Private="Private"};varjson= Argon.JsonConvert.SerializeObject(product);
json.Dump();}[Serializable]publicclassData{publicstringName{get;set;}[NonSerialized][JsonIgnore]publicstringPrivate;}
By searching in the code I have found that IgnoreDataMember attribute is also checked and this seems to work, but it's not documented so I don't known if it's intended to work that way or not.
The text was updated successfully, but these errors were encountered:
Hi,
I encounter a serialization issue in a test that use Verify which use this library to serialize data.
I have a field that I want to ignore and it doesn't seem to work.
From the documentation, there is two ways to ignore a field, by using JsonIgnore or NonSerialized attribute.
I have tested the two options and reproduced it in this simple snippet :
By searching in the code I have found that IgnoreDataMember attribute is also checked and this seems to work, but it's not documented so I don't known if it's intended to work that way or not.
The text was updated successfully, but these errors were encountered: