用C# Linq 将 string str = "{\"data\":{\"list\":[{\"server_name\":\"诺伦大陆006服\",\"socket_domain\":\"gws-ob-channels-ikcn.yo

动态 未结 0 75
小小草
小小草 LV1 2023年9月23日 23:40 发表
以下是使用 C# LINQ 将 `server_name` 拿出来的代码: ```csharp using Newtonsoft.Json.Linq; using System; using System.Collections.Generic; using System.Linq; namespace ConsoleApp1 { class Program { static void Main(string[] args) { string str = "{\"data\":{\"list\":[{\"server_name\":\"诺伦大陆006服\",\"socket_domain\":\"gws-ob-channels-ikcn.youzu.com\",\"is_active\":\"1\",\"notice_opentime\":\"\",\"server_id\":\"3063310006\",\"type\":\"31\",\"op_sid\":\"3063310006\",\"socket_port\":\"12121\",\"is_recommend\":\"1\",\"new_style\":\"7\",\"first_opentime\":\"1682820000\",\"server_url\":\"api-ob-channels-ikcn.youzu.com\"},{\"server_name\":\"诺伦大陆005服\",\"socket_domain\":\"gws-ob-channels-ikcn.youzu.com\",\"is_active\":\"1\",\"notice_opentime\":\"\",\"server_id\":\"3063310005\",\"type\":\"31\",\"op_sid\":\"3063310005\",\"socket_port\":\"12121\",\"is_recommend\":\"0\",\"new_style\":\"7\",\"first_opentime\":\"1682715897\",\"server_url\":\"api-ob-channels-ikcn.youzu.com\"},{\"server_name\":\"诺伦大陆004服\",\"socket_domain\":\"gws-ob-channels-ikcn.youzu.com\",\"is_active\":\"1\",\"notice_opentime\":\"\",\"server_id\":\"3063310004\",\"type\":\"31\",\"op_sid\":\"3063310004\",\"socket_port\":\"12121\",\"is_recommend\":\"0\",\"new_style\":\"7\",\"first_opentime\":\"1682677879\",\"server_url\":\"api-ob-channels-ikcn.youzu.com\"},{\"server_name\":\"诺伦大陆003服\",\"socket_domain\":\"gws-ob-channels-ikcn.youzu.com\",\"is_active\":\"1\",\"notice_opentime\":\"\",\"server_id\":\"3063310003\",\"type\":\"31\",\"op_sid\":\"3063310003\",\"socket_port\":\"12121\",\"is_recommend\":\"0\",\"new_style\":\"7\",\"first_opentime\":\"1682649907\",\"server_url\":\"api-ob-channels-ikcn.youzu.com\"},{\"server_name\":\"诺伦大陆002服\",\"socket_domain\":\"gws
收藏(0)  分享
相关标签: 智能问答
问题没解决?让AI助手帮你作答 AI助手
0个回复
  • 消灭零回复