I am creating a project in .net core 3.1 i am getting error in following line
using System.Web.Script.Serialization;
jsonPayload = new JavaScriptSerializer().Serialize(interopMessageModel);
Severity Code Description Project File Line Suppression State
Error CS0234 The type or namespace name 'Script' does not exist in the namespace 'System.Web' (are you missing an assembly reference?)
Severity Code Description Project File Line Suppression State
Error CS0246 The type or namespace name 'JavaScriptSerializer' could not be found (are you missing a using directive or an assembly reference?)
I found one sol here but did not understand how to resolve it for VS 2019