string str = "{\"fcode\":\"10\",\"fno\":\"009999\",\"fmemo\":\"009999-4\"}";
Dictionary<string, object> dd = str.Trim(new char[] { '{', '}' }).Split(',')
                        .ToDictionary(s => s.Split(':')[0].Trim('"'), s => (object)s.Split(':')[1].Trim('"'));
  Console.WriteLine(dd["fcode"]);

  

编辑器加载中...

相关文章:

  • 2021-06-05
  • 2021-08-18
  • 2021-10-10
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-19
猜你喜欢
  • 2022-03-01
  • 2021-07-12
  • 2021-09-20
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案