The original question was how do I make data that's in the browser into JSON so I can send to the server. I sort of assumed you knew how to make an Ajax call, so I left that part out and only mentioned how to take objects and convert into JSON (that presumably
would be sent on that Ajax call). Perhaps you weren't familiar with making the Ajax call?
vinceweeks
The data returned by the jquery call is already a collection. Does a java script array need to be defined and then populated with the values from the jquery? Further, what is the singature for the passed param at the controller?
So now I'm confused -- the data you're now talking about is being returned from an Ajax call and not collected from the client? This isn't making sense. Perhaps we can start over? :/
BrockAllen
All-Star
27512 Points
4895 Posts
MVP
Re: "post" ing json data to a controller method
Apr 26, 2012 08:51 PM|LINK
The original question was how do I make data that's in the browser into JSON so I can send to the server. I sort of assumed you knew how to make an Ajax call, so I left that part out and only mentioned how to take objects and convert into JSON (that presumably would be sent on that Ajax call). Perhaps you weren't familiar with making the Ajax call?
So now I'm confused -- the data you're now talking about is being returned from an Ajax call and not collected from the client? This isn't making sense. Perhaps we can start over? :/
DevelopMentor | http://www.develop.com
thinktecture | http://www.thinktecture.com/