private void button1_Click(object sender, EventArgs e)
{
//接收的字符串
string data = "POST / HTTP/1.1"+
"Content - Type: application / x - www - form - urlencoded"+
"Content - Length: 310"+
"Host: 192.168.1.108:8080" +
"Connection: Keep - Alive" +
"Accept - Encoding: gzip" +
"User - Agent: okhttp / 3.11.0" +
"IDNumber = &temp = 36.17 & time = 1603270306274 & path = http % 3A % 2F % 2F192.168.1.73 % 3A8091 % 2FFaceRecord % 2F2ff235c0 - 93c2 - 4f96 - ae4b - b573f3aace6b_84ea64d1 - 4aa6 - 43b4 - 9c9b - 35e429511c10_ % E5 % 94 % 90 % E5 % B7 % A5_1603270306274.jpg & data = &ip = 192.168.1.73 & deviceKey = 1AAB518E22DEL00018 & type = face" +
" & personId = 2ff235c0 - 93c2 - 4f96 - ae4b - b573f3aace6b";
Test(data);
}
C#解析接收的字符串成JSON格式
最新推荐文章于 2023-11-23 20:41:53 发布
本文介绍了如何在C#中将接收到的字符串有效地解析为JSON格式,包括使用Json.NET库的方法和步骤,以及处理可能出现的错误和异常。
摘要由CSDN通过智能技术生成