阅读背景:

JSON.NET:使用流从外部源获取json,如何只获取一个值?

来源:互联网 

I have the following code:

我有以下代码:

static void Main(string[] args)
{
    HttpClient client = new HttpClient();

    using (Stream stream = client.GetStreamAsync("https://opendata.rdw.nl/resource/8ys7-d773.json?kenteken=61SFSL").Result)
    using (StreamReader streamReader = new StreamReader(stream))
    using (JsonReader reader = new JsonTextReader(streamReader))
    {
        JsonSerializer serializer = new JsonSerializer();

        // read the json from a stream
        // json size doesn't matter because only a small piece is read at a time from the HTTP request


        //What do I do here to get my one value?


    }

    Console.WriteLine("Press any key to continue...");
    Console.Read();
}
static v



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: