title: WCF JSON object
body: <pre><code>    [OperationContract]
      [WebGet(RequestFormat = WebMessageFormat.Json)]
      public MyEmployee DoWorksINGLE()
      {
  
              return new MyEmployee("Bad", "Munner");
  
  
      }
   [DataContract]
      public class MyEmployee
      {
          public string FirstName = "";
          public string LastName = "";
          public MyEmployee(string F, string L)
          {
              FirstName = F;
              LastName = L;
          }
      }
  </code></pre>
  
  <p>I get following out put.</p>
  
  <p>{"d":{"__type":"MyService.MyEmployee:#efleet"}}</p>
  
  <p>Only the name of object not the values.
  can someone help?</p>