Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I'm trying to pass a javascript associative array to a controller.

I can pass normal arrays into a controller with this:

public JsonResult ProductsByFacets(List<string> facets)

but this won't work with associative arrays

share|improve this question
    
I'm guessing you are referring to object literals (JSON). Google found this: blogs.msdn.com/b/rakkimk/archive/2009/01/30/… . Hope it points you in the right direction. –  FK82 Jul 22 '10 at 12:34
add comment

1 Answer

up vote 3 down vote accepted

Check JsonValueProvider in ASP.NET MVC 2 Futures.

Sending JSON to an ASP.NET MVC Action Method Argument

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.