title: How to replace value in JSON object in Node.js
body: <p>I want to replace the value in existing JSON object in Node.js</p>
  
  <p>Code :</p>
  
  <pre><code>var designationName='Softwar Engineer';
  console.log(generateData[0]);
  </code></pre>
  
  <p>Console Output:</p>
  
  <pre><code>{ 
  email: 'xxxxxx@gmail.com',
  designation: 10,
  id: 274,
  first_name: 'firstname',
  mobile: '1234567890',
  last_name: 'lastname'
  }
  </code></pre>
  
  <p>In the above console output 'designation' value printed as '10'</p>
  
  <p>Expected Result:</p>
  
  <p>I want to replace "designation: Software Engineer" instead of "designation:10"</p>