C# .net API requests : <p>I'm trying to get specific data from the API, but it always says:</p>

<p>Newtonsoft.Json.JsonSerializationException: 'Cannot deserialize the current JSON object (e.g. {"name":"value"}) into type 'System.Collections.Generic.List`1[RESTfulAPIConsume.Model.GitHubRelease]' because the type requires a JSON array (e.g. [1,2,3]) to deserialize correctly.
To fix this error either change the JSON to a JSON array (e.g. [1,2,3]) or change the deserialized type so that it is a normal .NET type (e.g. not a primitive type like integer, not a collection type like an array or List) that can be deserialized from a JSON object. JsonObjectAttribute can also be added to the type to force it to deserialize from a JSON object.
Path 'links', line 2, position 11.'</p>

<p>I've been looking for hours please help me!</p>

<p>ps: nevermind the class names</p>

<p>I've been trying to change my conversion of json in many different ways but nothing seems to work...</p>

<pre><code>public static class RequestConstants
{
    public const string Url = "https://susanavet2.skolverket.se/api/1.1/infos?town=%C3%96rebro&amp;educationLevel=grund&amp;organisationForm=h%C3%B6gskoleutbildning&amp;configuration=program";
    public const string UserAgent = "User-Agent";
    public const string UserAgentValue = "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36";
}


public class GitHubRelease
{
    [JsonProperty(PropertyName = "educationLevel")]
    public string Name { get; set; }
    [JsonProperty(PropertyName = "degree")]
    public string PublishedAt { get; set; }
}
</code></pre>

<p>Program class</p>

<pre><code>        //These are the six ways to consume RESTful APIs described in the blog post
        IRequestHandler httpWebRequestHandler = new HttpWebRequestHandler();
        IRequestHandler webClientRequestHandler = new WebClientRequestHandler();
        IRequestHandler httpClientRequestHandler = new HttpClientRequestHandler();
        IRequestHandler restSharpRequestHandler = new RestSharpRequestHandler();
        IRequestHandler serviceStackRequestHandler = new ServiceStackRequestHandler();
        IRequestHandler flurlRequestHandler = new FlurlRequestHandler();

        ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;


        var response = GetReleases(httpWebRequestHandler);

        var githubReleases = JsonConvert.DeserializeObject&lt;List&lt;GitHubRelease&gt;&gt;(response);


        foreach (var release in githubReleases)
        {
            Console.WriteLine("Education: {0}", release.Name);
            Console.WriteLine("Degree: {0}", release.Name);
            Console.WriteLine();
        }

        Console.ReadLine();
    }

    public static string GetReleases(IRequestHandler requestHandler)
    {
        return requestHandler.GetReleases(RequestConstants.Url);
    }
}
</code></pre>
