I would like to know :
- [PreserveObjectReference] Is this syntax with $ref and $id is a Json standard ?
- Is there a way to serialize objects in Javascript using this syntax ? (automatically replacing by $ref : "id" the object it founds for a second time in the object to serialize tree).
This could be usefull to POST many objects and to create ForeignKeys between them (Entity Framework requires same reference to create only one Object when adding to DbContext). I found a way to keep the references when Deserializing it with Newtonsoft, when Automapping from dtos to EF Entities, but I don't find any solution on the Javascript side.
Thanks in advance.