How to use transfer JSON data from an ASP.NET MVC view to JavaScript JSON?
I serialized my data to JSON from the controller: // Serialization string jsonActivities = JsonSerializer.Serialize(ViewUserNotifications); ModelData.JsonNotifications = jsonActivities; View: @Model.JsonNotifications [{"Id":7,"UserSender":10,"UserReciever":4,"UserSenderName":"Maya","UserSenderSurname":"Robertson","UserSenderProfileImage":"88cf1027-eafd-493f-8b9c-add3f6812eb0_64.jpg","Message":"Maya is following you","Seen":true,"Created":"2021-09-04T21:07:50.3294555","Status":3}] I wonder how can I use this Json data with Javascript? I tried like this: <script>…