title: How to convert AJAX String response to JSON
body: <p>My EjB response using AJAX likes this:</p>
  
  <pre><code>"{'Active':{'123','456','789'},'Inactive':{'111','222','333'}}"
  </code></pre>
  
  <p>I want to convert the above string to JSON objects.
  JSON objects will be used in JavaScript to draw the map.</p>
  
  <p>Or</p>
  
  <p>I want the same string to get converted like below in JavaScript:</p>
  
  <p>var active = ["123", "456", "789"];
  var inactive = ["111", "222", "333"];</p>
  
  <p>Note: I'm using AJAX in JS.</p>