请教:JSON拼接时 string[]组型数据如何拼接
有个参数是string[] C#中用这种方式传值 (参数:useridlist)var cli = new WebClient();
cli.Encoding = System.Text.Encoding.UTF8;//定义对象语言
cli.Headers[HttpRequestHeader.ContentType] = "application/json";
var obj = new {
name = "生产任务提醒群",
owner = "0250452735598104",
useridlist = new List<string>() { "31192441281231555", "0250452735598104" }
};
string repsonse = cli.UploadString(urlt2, JsonConvert.SerializeObject(obj));
VFP中用 什么方式呢? (空白了处要怎么写值)
TEXT TO lcJsonText TEXTMERGE NOSHOW PRETEXT 15
{
"name": "生产任务提醒群",
"owner ": "0250452735598104",
"useridlist":{ }
}
ENDTEXT
附开发文档地址:https://developers.