title: jQuery JSON Decode ( PHP to Javascript)
body: <p>I'm trying to make an autocomplete script. I pass variables through JSON, and then I don't know how to go on to decode JSON.</p>
  
  <p>This is an example of the JSON code I got, and I'd like to convert it in a simple javascript array:</p>
  
  <pre><code>[{"ID":"1","name":"Amateur astronomy \r"},{"ID":"2","name":"Amateur microscopy \r"},{"ID":"173","name":"Amateur radio \r"},{"ID":"299","name":"Amateur astronomy \r"},{"ID":"349","name":"Amateur theater \r"}] 
  </code></pre>