Add JsonCloneSettings to disable copy annotations (#2757)

Co-authored-by: Sneha Shivakumar <snshivakumar@microsoft.com>
This commit is contained in:
James Newton-King
2022-11-14 08:55:47 +08:00
committed by GitHub
co-authored by Sneha Shivakumar
parent d0a328e8a4
commit b13717a1c1
13 changed files with 265 additions and 49 deletions
@@ -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
{