How to restore circular references (e.g. “$id”) from Json.NET-serialized JSON?
问题 Is there an existing javascript library which will deserialize Json.Net with reference loop handling? { \"$id\": \"1\", \"AppViewColumns\": [ { \"$id\": \"2\", \"AppView\": {\"$ref\":\"1\"}, \"ColumnID\": 1, } ] } this should deserialize to an object with a reference loop between the object in the array and the outer object 回答1: The answers given almost worked for me, but the latest version of MVC, JSON.Net, and DNX uses "$ref" and "$id", and they may be out of order. So I've modified