Convert .Net object to JSON object in the view December 8, 2023 by Tarik Try using this method: @Html.Raw(Json.Encode(Model.Content))