SyntaxFix
Write A Post
Hire A Developer
Questions
In ASP.NET Core the IJsonHelper.Serialize() returns IHtmlContent so you don't need to wrap it with a call to Html.Raw().
IHtmlContent
Html.Raw()
It should be as simple as:
<script> var json = @Json.Serialize(Model.CollegeInformationlist); </script>