I have the following json string in javascript. This line contains circular references. I want to parse this string so that the link will be replaced by its actual object. I use Json.Parse , but it creates a json object with links. Is there any way I can achieve this?
{ "$id": "1", "$values": [ { "$id": "2", "Event": { "$id": "3", "Invitaions": { "$id": "4", "$values": [ { "$ref": "2" }, { "$id": "5", "Event": { "$ref": "3" }, "Id": 2, "Name": "test2", "Date": "24", "EventId": 1 } ] }, "Id": 1, "Name": "marriage", "Address": "abcd" }, "Id": 1, "Name": "test1", "Date": "23", "EventId": 1 }, { "$ref": "5" }, { "$id": "6", "Event": { "$id": "7", "Invitaions": { "$id": "8", "$values": [ { "$ref": "6" } ] }, "Id": 2, "Name": "birthday", "Address": "abcd" }, "Id": 3, "Name": "test3", "Date": "25", "EventId": 2 } ] }
source share