title: WCF Rest API: How to sent dictionary using postman
body: <p>I have following interface &amp; implementation. </p>
  
  <pre><code>** Interface **
  public interface IAPIHelper
  {
      //RESTFul API
      [FaultContract(typeof(RequestValidationFault))]
      [WebInvoke(UriTemplate = "/ByteFromData", Method = "POST", ResponseFormat = WebMessageFormat.Json, RequestFormat = WebMessageFormat.Json)]
      [OperationContract]
      byte[] ByteFromData(ByteFaRequest HashMap);
  }
  
   *** Data contract ***
  
  [DataContract]
  public class ByteFaRequest 
  {
      [DataMember]
      public Dictionary&lt;string, string[]&gt; HashMap;
  }
  
  
    ***Implementation****
  
  [ServiceBehavior]
  [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]
  public class APIHelper : IAPIHelper
  {
      public byte[] ByteFromData(ByteFaRequest data)
      {
          // Business Logic
      }
  }
  </code></pre>
  
  <p>Now, I am trying to check this api using postman, but i did not get any value in parameter, though i am able to call other get/post WCF REST apis. Do i missing something in creating JSON request in postman. </p>
  
  <pre><code> json request - 
   {
     "HashMap" : {"key1":["1.1","1.2"],"key2":["2.1","2.2"],"key3":["3.1","3.2"]}
   }
  </code></pre>
  
  <p>POSTMAN Screenshot: </p>
  
  <p>[![enter image description here][1]][1]</p>
  
  <p>After calling api - i did not get data in dictionary object. </p>
  
  <p>what is missing in json request?</p>