I can't JSON to List ;_; [Answered]

The JSON value could not be converted to System.Collections.Generic.List`1[Card]. Path: $ | LineNumber: 0 | BytePositionInLine: 1.'

That's my error

Here's my attempt to just call and dump it into a List.
        private static async Task ProcessRepositories()
        {
            var stringTask = client.GetStringAsync("https://api.magicthegathering.io/v1/cards/");
            var msg = await stringTask;
            var cards = JsonSerializer.Deserialize<List<Card>>(msg);
        }
Was this page helpful?