jsonconvert.serializeobject c# library nuget package code example Example: json nuget package manager Install-Package Newtonsoft.Json -Version 12.0.3