title: How to convert a JSON string into a JavaScript Object including type checking
body: <p>For a Javascript project I have an json string converted into a Javascript object. But the type of all my values is 'string' becaus of the JSON parsing. <br>Is there any solution to identify the types and let a script convert them into the correct javascript type?</p>
  
  <p>for example</p>
  
  <pre><code>//Javascript object for the json decoded string    
  var jsonObj = { id: "foo", count: "1" };
  </code></pre>
  
  <p>All the values are of type 'string' but I want count to be seen as a number. Is there a parser to set the correct type or does it need to be done manual in JS?</p>