title: Receiving the key value pair as input parameter
body: <p>I am trying to receive the below key value pair as the input parameter to my Web API </p>
  
  <pre><code>json=%7B%0A%22MouseSampleBarcode%22%20%3A%20%22MOS81%22%0A%7D%0A
  </code></pre>
  
  <p>where the right of the string is the URL encoded JSON which looks like</p>
  
  <pre><code>{
  "MouseSampleBarcode" : "MOS81"
  }
  </code></pre>
  
  <p>How can I parse this and store them in to the Model class </p>
  
  <pre><code> [HttpPost]
   public async Task&lt;IHttpActionResult&gt; Get([FromBody] CoreBarCodeDTO.RootObject coreBarCode)
   {
    string Bar_Code = coreBarCode.MouseSampleBarcode.ToString();
  </code></pre>
  
  <p>where the CoreBarCodeDTO looks like below</p>
  
  <pre><code>public class CoreBarCodeDTO
  {
      public class RootObject
      {
          public string MouseSampleBarcode { get; set; }
      }
   }
  </code></pre>