ASP.NET MVC 2 How to pass JSON for an ASP.NET controller action

I wonder if there is a better way to do this using ASP.NET MVC2. The following SO posts are a bit outdated:

How to pass complex type using json for ASP.NET MVC controller

ASP.NET MVC How to pass a JSON object from a view to a controller as a parameter

as well as without using the phil haack futures library in the next post. http://haacked.com/archive/2010/04/15/sending-json-to-an-asp-net-mvc-action-method-argument.aspx

Basically, what I'm doing right now uses a JavaScriptSerializer and is deserialized into an action / actionfilter.

+3
source share
1 answer

Phil Haack - MVC 2 - JsonValueProviderFactory JSON.

MVC 3, MVC 3 JsonValueProviderFactory

0

Source: https://habr.com/ru/post/1763503/


All Articles