can the default binder deserialize complex JSON obj?

Go To StackoverFlow.com

0

I want to send a JSON object from the client to

an action on a MVC controller.

Something like:

{ A: {1,2,3} , B: 3, C: {d:{1,2,3} ,4}} }

Can I create an object with the same struct and the default binder

will know to deserialize it?

2012-04-04 06:49
by Elad Benda


0

Yes you can. Have a look at this article: Post Complex JavaScript Objects to ASP.NET MVC Controllers

Download the source code provided on this page and make use of the $.postify jquery plugin.

2012-04-04 12:18
by Andrew Thomson
Ads