title: Spring MVC generate quoted field name json output
body: <p>I am using spring 3.0 in my webapplication. I've got recently a problem in my application. I am using <code>&lt;mvc:annotation-drive/&gt;</code> tag in my spring-servlet.xml file but due to a requirement I've to remove this and place XML configuration instead.</p>
  
  <p>But now my problem is it generates json output with quoted field names like if I return <code>Boolean.TRUE</code> I got <code>"true"</code> in the output. I want just true without quotes.</p>
  
  <p>here is my XML configuration</p>
  
  <pre><code>&lt;bean id="conversionService" class="org.springframework.format.support.FormattingConversionServiceFactoryBean" /&gt;
      &lt;bean id="pathMatcher" class="net.hrms.web.filters.CaseInsensitivePathMatcher" /&gt;
  
  &lt;bean name="handlerAdapter" class="org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter"&gt;
      &lt;property name="webBindingInitializer"&gt;
          &lt;bean class="org.springframework.web.bind.support.ConfigurableWebBindingInitializer"&gt;
              &lt;property name="conversionService" ref="conversionService"&gt;&lt;/property&gt;
          &lt;/bean&gt;
      &lt;/property&gt;
      &lt;property name="messageConverters"&gt;
          &lt;list&gt;
              &lt;ref bean="byteArrayConverter"/&gt;
              &lt;ref bean="jaxbConverter"/&gt;
              &lt;ref bean="jsonHttpMessageConverter"/&gt;
              &lt;bean class="org.springframework.http.converter.StringHttpMessageConverter"&gt;&lt;/bean&gt;
              &lt;bean class="org.springframework.http.converter.ResourceHttpMessageConverter"&gt;&lt;/bean&gt;
              &lt;bean class="org.springframework.http.converter.xml.SourceHttpMessageConverter"&gt;&lt;/bean&gt;
              &lt;bean class="org.springframework.http.converter.xml.XmlAwareFormHttpMessageConverter"&gt;&lt;/bean&gt;
          &lt;/list&gt;
      &lt;/property&gt;
  &lt;/bean&gt;
  &lt;bean name="byteArrayConverter" class="org.springframework.http.converter.ByteArrayHttpMessageConverter"&gt;&lt;/bean&gt;
  &lt;bean name="jaxbConverter" class="org.springframework.http.converter.xml.Jaxb2RootElementHttpMessageConverter"&gt;&lt;/bean&gt;
  &lt;bean name="handlerMapping" class="org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping"&gt;
      &lt;property name="pathMatcher" ref="pathMatcher"&gt;&lt;/property&gt;
  &lt;/bean&gt;
  
    &lt;bean class="org.springframework.web.servlet.view.InternalResourceViewResolver"&gt;
      &lt;property name="prefix" value="/WEB-INF/jsps/"/&gt;
      &lt;property name="suffix" value=".jsp"/&gt;
    &lt;/bean&gt;
  
    &lt;bean id="jsonHttpMessageConverter"
          class="org.springframework.http.converter.json.MappingJacksonHttpMessageConverter"&gt;
      &lt;property name="prefixJson" value="false"/&gt;
      &lt;property name="supportedMediaTypes" value="application/json"/&gt;
    &lt;/bean&gt;
  </code></pre>
  
  <p>any help would be much appreciable. </p>