title: How to convert javascript object to plain text so that while posting the data i can post simple text
body: <p>I have a problem here i am making an ionic application with angular 5 and ionic v.2</p>
  
  <p>I have a backend which helps me to trigger email on the click of a button but in that email i have to post data from the front end that is let say order summary with email. So this order summary i am posting it from front end. </p>
  
  <p>I have a javascript object with key value pairs i want to post this javascript object as a plain text so that while the user reads his email the response should not be a json it should be a plain text only</p>
  
  <p>example of object which is getting posted in api as body:</p>
  
  <pre><code>coalCredentials = {
  "company_id": "hitachi09",
  "company_name": "hitachi" ,
  "country": "" ,
  "current_stock" : "88",
  "delivery_remarks":"yes",
  "demand_stock":"66",
  "expected_order_delivery":"2018-08-08",
  "gar":"",
  "gsv":"",
  "nar":"",
  "plant_address":"gachibowli",
  "product_name":"coal",
  "product_size":"",
  "product_type":"petcoke",
  "seal_check":"yesonseal",
  "vessel_type":"huit"
  }
  </code></pre>
  
  <p>so this is a json format of sending data. I want to send it as plain text so that result while sending appears to be</p>
  
  <pre><code>company_id: hitachi09
  company_name: hitachi
  country: 
  current_stock :88
  delivery_remarks:yes
  demand_stock:66
  expected_order_delivery:2018-08-08
  gar:""
  gsv:""
  nar:""
  plant_address:gachibowli
  product_name:coal
  product_size:""
  product_type:petcoke
  seal_check:yesonseal
  vessel_type:huit
  </code></pre>
  
  <p>so please can someone helps what needs to be done so that email can look meaning full to the customer.</p>
  
  <p>weather the change should be on the backend or on the front end</p>
  
  <p>front end is in angular 5 and backend is in node.js</p>