引用

Newtonsoft.Json.dll

 

//C# 读取JSON

Newtonsoft.Json.Linq.JObject jsonStr = Newtonsoft.Json.Linq.JObject.Parse(strResult);
this.txtResult.Text = jsonStr["result"].ToString();//通过key:result 获取对应的值

 

php 生成 Json 部分  

<?php

$arr_result = array(); //返回值

$arr_result['result'] = '0';
$arr_result['callerid'] = '139411288888';

echo json_encode($arr_result);  

?>

相关文章:

  • 2021-12-30
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-06
  • 2022-01-01
猜你喜欢
  • 2022-01-01
  • 2022-12-23
  • 2021-08-22
  • 2022-12-23
  • 2022-01-01
  • 2021-10-28
相关资源
相似解决方案