.net Core 3 [JsonIgnore] not working when requesting single resource
问题 in my .net Core 3.0 Api the [JsonIgnore] Attribute is not working as excepted. Im using System.Text.Json instead of the old Newtonsoft.Json When i'm using my resource that returns a list of Objects, for example: /api/Object/ the objects are serialized like this: [ { "id": 1, "date": "2020-02-12T08:45:51.502", "userId": 1, "tags": [ { "name": "string" } ] } ] But when I request a single result /api/Object/{id} the full object gets serialized like this: { "user": { "hasAccess": false, "id": 1,