Add JsonCloneSettings to disable copy annotations (#2757)
Co-authored-by: Sneha Shivakumar <snshivakumar@microsoft.com>
This commit is contained in:
co-authored by
Sneha Shivakumar
parent
d0a328e8a4
commit
b13717a1c1
@@ -324,7 +324,7 @@ namespace Newtonsoft.Json.Tests.Serialization
|
||||
]";
|
||||
|
||||
JToken t1 = JToken.Parse(json);
|
||||
JToken t2 = t1.CloneToken();
|
||||
JToken t2 = t1.DeepClone();
|
||||
|
||||
List<EmployeeReference> employees = t1.ToObject<List<EmployeeReference>>(JsonSerializer.Create(new JsonSerializerSettings
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user