使用物件轉Json如下
// Json Encoding
string output = JsonConvert.SerializeObject(oal);
需在Nuget下載Newtonsoft.Json
可是下載完成後 跑編譯時
出現錯誤 無法載入檔案或組件 'Newtonsoft.Json' 或其相依性的其中之一。 找到的組件資訊清單定義與組件參考不符。 (發生例外狀況於 HRESULT: 0x80131040)
使用物件轉Json如下
// Json Encoding
string output = JsonConvert.SerializeObject(oal);
需在Nuget下載Newtonsoft.Json
可是下載完成後 跑編譯時
出現錯誤 無法載入檔案或組件 'Newtonsoft.Json' 或其相依性的其中之一。 找到的組件資訊清單定義與組件參考不符。 (發生例外狀況於 HRESULT: 0x80131040)