title: How to encode username and password?
body: <p>I need to send encoded username and Password through request body. 
  Here I'm sending username and password in the format of JSON object.</p>
  
  <p>How to do it?</p>
  
  <p>Thanks in advance.</p>