我有这个代码:
JsonSerializerSettings settings = new JsonSerializerSettings()
{
PreserveReferencesHandling = PreserveReferencesHandling.None
};
var obj = JsonConvert.SerializeObject(result[0], settings);
无论我做什么,SerializeObject 都坚持将 $id 添加到 json 结果中。如何使 $id 消失?