我在遵循關於HTTP請求主題的教程時遇到問題。我無法讓代碼自動解析我對JSON的回覆。這仍然是文字。雖然說明指定'json:true'時,會將類型設置爲json並解析。 教程:https://www.terlici.com/2015/04/28/couchdb-node-express.html var request = require('request');
var url = 'http
我在控制器後的方法是這樣的: public IActionResult Post([FromBody]string directoryPath)
{
_log.Debug($"Got ScanDirectory request for directoryPath:{directoryPath}");
if (string.IsNullOrEmpty(directoryPa