title: Is Json Support in Spring MVC 3.2 broken?
body: <p>I am using Spring MVC in my application.
  For a certain ajax call, I need to return JSON response.
  Normally you would do that using @ReponseBody annotation.</p>
  
  <p>Here is the piece of code I have used.</p>
  
  <pre><code>@RequestMapping(value ="/getClients", headers="Accept=*/*", produces = "application/json")
  public @ResponseBody List&lt;Map&lt;String, Object&gt;&gt; getClients(@ModelAttribute("searchText") String searchText, ModelMap model){
      logger.debug("Entering getClients with searchtext as : {}", searchText);
      List&lt;Map&lt;String, Object&gt;&gt; autoCompleterResult = null;
      try{
          autoCompleterResult = clientService.getClientsForAutoCompleter(searchText);
      logger.debug("Grid Result is : {}", autoCompleterResult );
      }catch(Exception e){
          logger.error("Exception occured", e);
      }
      return autoCompleterResult;
  }
  </code></pre>
  
  <p>This works with Spring 3.1.4, but doesn't works with Spring 3.2 version. 
  Or is there some specific configuration I need to do for this to work with Spring 3.2?</p>
  
  <p><strong>MVC Config</strong></p>
  
  <pre><code>  &lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;beans xmlns="http://www.springframework.org/schema/beans"
  xmlns:mvc="http://www.springframework.org/schema/mvc"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns:context="http://www.springframework.org/schema/context"
  xsi:schemaLocation="http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc.xsd
      http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
      http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.1.xsd"&gt;
  &lt;mvc:annotation-driven /&gt;
  &lt;mvc:resources location="/css/**" mapping="/css/" /&gt;
  &lt;mvc:resources location="/js/**" mapping="/js/" /&gt;
  &lt;mvc:resources location="/images/**" mapping="/images/" /&gt;
  &lt;bean class="org.springframework.web.servlet.handler.SimpleMappingExceptionResolver"&gt;
      &lt;property name="exceptionMappings"&gt;
          &lt;props&gt;
              &lt;prop key="java.lang.Exception"&gt;error&lt;/prop&gt;
          &lt;/props&gt;
      &lt;/property&gt;
  &lt;/bean&gt;
  &lt;bean id="viewResolver" class="org.springframework.web.servlet.view.InternalResourceViewResolver"&gt;
      &lt;property name="viewClass" value="org.springframework.web.servlet.view.JstlView" /&gt;
      &lt;property name="prefix" value="/WEB-INF/views/" /&gt;
      &lt;property name="suffix" value=".jsp" /&gt;
  &lt;/bean&gt;
  &lt;context:component-scan base-package="com.controllers" /&gt;
  &lt;context:property-placeholder location="classpath:application.properties"/&gt;
  </code></pre>
  
  <p></p>
  
  <p>PS : I have included Jackson jar in my class path.</p>
  
  <p><strong>Update</strong>
  Stack Trace :</p>
  
  <pre><code> 02 Aug 2013 11:55:00 DEBUG impl.DistributionPlatformRepositoryImpl           (DistributionPlatformServiceImpl.java42) - Entering getPlatforms 
   02 Aug 2013 11:55:00 DEBUG impl.DistributionPlatformRepositoryImpl (DistributionPlatformRepositoryImpl.java40) - Entering getPlatforms
   02 Aug 2013 11:55:00 DEBUG impl.DistributionPlatformRepositoryImpl (DistributionPlatformServiceImpl.java88) - Entering getPlatformsAaData
   02 Aug 2013 11:55:00 DEBUG controllers.SearchPlatformController (SearchPlatformController.java56) - Grid Result is : {iTotalDisplayRecords=7, aaData=[[A, B, C, 7, D, E, C, In Active, 25], [A, T, B, 3, L, C, 001, In Active, 20]]}
   02 Aug 2013 11:55:00 DEBUG annotation.ExceptionHandlerExceptionResolver (AbstractHandlerExceptionResolver.java132) - Resolving exception from handler [public java.util.Map&lt;java.lang.String, java.lang.Object&gt; com.controllers.SearchPlatformController.getPlatforms(com.model.form.SearchPlatformForm,org.springframework.ui.ModelMap)]: org.springframework.web.HttpMediaTypeNotAcceptableException: Could not find acceptable representation
   02 Aug 2013 11:55:00 DEBUG annotation.ResponseStatusExceptionResolver (AbstractHandlerExceptionResolver.java132) - Resolving exception from handler [public java.util.Map&lt;java.lang.String, java.lang.Object&gt; com.controllers.SearchPlatformController.getPlatforms(com.model.form.SearchPlatformForm,org.springframework.ui.ModelMap)]: org.springframework.web.HttpMediaTypeNotAcceptableException: Could not find acceptable representation
   02 Aug 2013 11:55:00 DEBUG support.DefaultHandlerExceptionResolver (AbstractHandlerExceptionResolver.java132) - Resolving exception from handler [public java.util.Map&lt;java.lang.String, java.lang.Object&gt; com.controllers.SearchPlatformController.getPlatforms(com.model.form.SearchPlatformForm,org.springframework.ui.ModelMap)]: org.springframework.web.HttpMediaTypeNotAcceptableException: Could not find acceptable representation
   02 Aug 2013 11:55:00 DEBUG servlet.DispatcherServlet (DispatcherServlet.java999) - Null ModelAndView returned to DispatcherServlet with name 'managedaccounts': assuming HandlerAdapter completed request handling
   02 Aug 2013 11:55:00 DEBUG servlet.DispatcherServlet (FrameworkServlet.java951) - Successfully completed request
  </code></pre>