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.