title: Json object passing to a function fails in golang
body: <p>In this program, I try pass a JSON object to a function and then to a REST API with <code>POST</code>. To do that I have following.</p>
  
  <pre><code>type resposeObj struct{
      uid     string `json :"uid"`
      service string `json : "service"`
  }
  
  response := resposeObj{uid:validatemailID.String(),service:"API Gateway"}
  
  validateResponse,err := json.Marshal(response)
  
          if err != nil{
              log.Println("Error in marshaling data",err)
          }
  
          log.Println("Validate response byte slice: ",validateResponse)
  
  err = sendResponse(validatemailResponse) 
  
  </code></pre>
  
  <pre><code>
  func sendResponse(req []byte)error{
      log.Println("Received response : ",string(req))
      return nil
  }
  
  </code></pre>
  
  <p>And I get <code>Validate response byte slice:  [123 125]</code> as output. Which should be the byte array of Json object.</p>
  
  <p>What am I missing here? Why its not converting to byte slice?</p>