How to import JsonConvert in C# application?

后端 未结 9 1403
栀梦
栀梦 2020-12-03 02:33

I created a C# library project. The project has this line in one class:

JsonConvert.SerializeObject(objectList);

I\'m getting error saying

9条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-03 03:03

    Install it using NuGet:

    Install-Package Newtonsoft.Json
    


    Posting this as an answer.

提交回复
热议问题