Using references doesn’t work with objects that only have constructors with parameters.
Json.NET has to deserialize all the child values before it creates the parent, it needs those values to pass to the constructor, so there is no valid parent reference to assign to the child.
More Related Contents:
- How To Deserialize Dynamic dirty json data in node js posted by react [duplicate]
- JSON.NET: Why Use JToken–ever?
- JSON.net ContractResolver vs. JsonConverter
- json.net – how to add property $type ONLY on root object
- how to remove $id during JSON serialization
- JObject.Parse modifies end of floating point values
- Json.NET get nested jToken value
- JSON.Net – Change $type field to another name?
- Self referencing loop detected in ASP.NET Core [duplicate]
- How to implement custom JsonConverter in JSON.NET?
- Using JsonConvert.DeserializeObject to deserialize Json to a C# POCO class
- How to serialize a Dictionary as part of its parent object using Json.Net
- How to write a JSON file in C#?
- Private setters in Json.Net
- Deserializing JSON to abstract class
- Web API 2: how to return JSON with camelCased property names, on objects and their sub-objects
- JsonSerializerSettings and Asp.Net Core
- Newtonsoft JSON.net deserialization error where fields in JSON change order
- JSON serialize properties on class inheriting list [duplicate]
- Convert Newtonsoft.Json.Linq.JArray to a list of specific object type
- Deserialize using JSON.net
- Newtonsoft inline formatting for subelement while serializing
- JSON.NET deserialize a specific property
- How can I deserialize an invalid json ? Truncated list of objects
- Json.Net adding $id to EF objects despite setting PreserveReferencesHandling to “None”
- Get Raw json string in Newtonsoft.Json Library
- Json.net serialize numeric properties as string
- How to deserialize dodgy JSON (with improperly quoted strings, and missing brackets)?
- C# JsonConvert using the default converter instead of the custom converter
- Streaming large list of data as JSON format using Json.net