简体   繁体   中英

How to get Json value from "https://www.scopus.com/author/highchart.uri?authorId=7103216110" Url With HttpWebRequest and HttpWebResponse In C#

I'm working on DesktopApplication with C# and I want to read json value from this url inorder to deserialize json file and insert it's data into my database and i can't read json value with StreamReader Class :

WebResponse response = request.GetResponse();
using (Stream responseStream = response2.GetResponseStream())
{
    StreamReader reader = new StreamReader(responseStream, Encoding.UTF8);
    jsonValue = reader.ReadToEnd();
}

请参考Newtonsoft.Json这个 NuGet 包可以做你需要的。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM