title: json stringify failing when value is without double quotes
body: <p>When I try to convert below json to string, getting unexpected desired output when the value is not surrounded with double quotes:</p>
  
  <p><strong>JSON data:</strong></p>
  
  <pre><code>[
  {
      "Name": "param1",
      "Type": "Integer",
      "Default Value": 8778
  },
  {
      "Name": "param2",
      "Type": "Float",
      "Default Value": 1.4
  },
  {
      "Name": "param3",
      "Type": "String",
      "Default Value": true
  },
  {
      "Name": "param4",
      "Type": "String",
      "Default Value": "test"
  }
  ]
  </code></pre>
  
  <p><strong>Current result:</strong></p>
  
  <pre><code>[{"Name":"param1","Type":"Integer","Default Value":8778},  {"Name":"param2","Type":"Float","Default Value":**1.4**}, {"Name":"param3","Type":"String","Default Value":**true**}, {"Name":"param4","Type":"String","Default Value":**"test"**}]
  </code></pre>
  
  <p><strong>Expected result:</strong></p>
  
  <pre><code>[{"Name":"param1","Type":"Integer","Default Value":**"8778"**},  {"Name":"param2","Type":"Float","Default Value":**"1.4"**}, {"Name":"param3","Type":"String","Default Value":**"true"**}, {"Name":"param4","Type":"String","Default Value":**"test"**}]
  </code></pre>
  
  <p>I tried below code: but it is not working.</p>
  
  <pre><code>  jsondata = JSON.stringify(confTableData);          
    jsondata = jsondata.replace(/:(\d+|\d*\.\d+)([,\}])/g, ':"$1"$2'); // only Integer &amp; Float type values replaced         
    jsondata = jsondata.replace(/:(.)([,\}])/g, ':"$1"$2'); It gives strange result.            
  </code></pre>
  
  <p>Can anyone help me on the regex pattern to match my requirement. </p>