title: Light and old-browsers compatible alternative for JSON in pure javascript
body: <p>Im getting a text response from my server stored in a javascript var. I have complete control of the format of this response. Normally this text response have 3 elements I need, ideally i will like to use <code>json.parse</code> to solve my problems like:</p>
  
  <pre><code>var json = '{"result":true,"count":1, "state":"ON"}',
  obj = JSON.parse(json);
  
  alert(obj.result);
  alert(obj.count);
  alert(obj.state);
  </code></pre>
  
  <p>Elegant and simple, but <a href="http://caniuse.com/#search=JSON.parse" rel="nofollow">older browsers</a> like IE8,7,6 do not support json.parse. At this point I have two possible solutions, one of course is to use Jquery, but i dont want because i want to keep my code small as possible, and two could be using a library like <a href="https://github.com/douglascrockford/JSON-js/blob/master/json2.js" rel="nofollow">json2</a> that handles for me the incompatibility issues like jquery does, but then again, same problem, too much code for such a simple function. </p>
  
  <p>So I think the best approach will be to change the response format to something like <code>true%1%ON</code> and then split around <code>%</code>, what do you think? seems to me a bit dirty.</p>