使い方
・C#側
var dic = new Dictionary<string, object>(); dic.Add("data1", val); dic.Add("data2", val2); return Content(JsonSerializer.Serialize(dic)); </pre>
・js側
const result = await response.json(); </pre>
var dic = new Dictionary<string, object>(); dic.Add("data1", val); dic.Add("data2", val2); return Content(JsonSerializer.Serialize(dic)); </pre>
・js側
const result = await response.json(); </pre>