title: WCF 4.0 : WebMessageFormat.Json not working with WCF REST Template
body: <p>Downloaded the WCF REST Template from <a href="http://visualstudiogallery.msdn.microsoft.com/en-us/fbc7e5c1-a0d2-41bd-9d7b-e54c845394cd" rel="noreferrer">this</a> location. </p>
  
  <p>The default response format is XML, which works great. However, when I try to get a JSON response, I still get XML.</p>
  
  <p>This is my modified code -</p>
  
  <pre><code>[WebGet(UriTemplate = "",ResponseFormat = WebMessageFormat.Json)]
      public List&lt;SampleItem&gt; GetCollection()
      {
          // TODO: Replace the current implementation to return a collection of SampleItem instances
          return new List&lt;SampleItem&gt;() { new SampleItem() { Id = 1, StringValue = "Hello" } };
      }
  </code></pre>
  
  <p>Note the ResponseFormat=WebMessageFormat.Json. That is the only change I did to that template.</p>
  
  <p>What am I missing?</p>
  
  <p>Thanks!</p>