title: Nodejs: How to preserve "\u00a0" in JSON string during a merge with other JSON
body: <p>I have to merge 2 json files and need to preserve a string in one of the files:</p>
  
  <p><code>"weeks": "weeks\u00a0days"</code></p>
  
  <p>The <code>\u00a0</code> after the merge always change to space: <code>"weeks": "weeks days"</code>. </p>
  
  <p>I want it to stay as: <code>"weeks": "weeks\u00a0days"</code></p>
  
  <p>some code:</p>
  
  <pre><code>//merge.js
  const fs = require('fs');
  const test1 = fs.readFileSync('./test1.json', 'utf8');
  const test2 = fs.readFileSync('./test2.json', 'utf8');
  
  const merge = (obj1, obj2) =&gt;
    JSON.stringify({ ...JSON.parse(obj1), ...JSON.parse(obj2) }, null, 4);
  
  const saveFile = (fileName, obj1, obj2) =&gt; {
    fs.writeFile(`${__dirname}/${fileName}`, merge(obj1, obj2), err =&gt; {
      if (err) throw err;
      console.log(`The file ${fileName} has been saved!`);
    });
  };
  
  saveFile('testFinal.json', test1, test2);
  </code></pre>
  
  <p>test1.json</p>
  
  <pre><code>{
    "link": {
      "about": "About",
      "version": "version"
    },
    "items": {
      "siteId": "Site ID",
      "siteName": "Site name",
      "siteType": "Site type",
      "weeks": "weeks\u00a0days"
    }
  }
  </code></pre>
  
  <p>test2.json</p>
  
  <pre><code>{
    "features": {
      "activateFeatures": "Activate features",
      "confirmation": "Confirmation",
      "hardware": "Hardware",
      "existingHardware": "Existing hardware",
      "emailLicense": "Email license",
      "downloadLicense": "Select quantity"
    }
  }
  
  </code></pre>
  
  <p>please help</p>