title: How to pass json as param in a function
body: <p>I'm trying to learn Jquery. 
  I have a problem: I have to send a json dynamically as param of a function. My code is this: </p>
  
  <pre><code>$('#grafo').append('&lt;a class="list-group-item graph" href="#" id="' + nome.replace(/ /g,'') + '" onclick="printAnnotation(\'' + json + '\',\'' + index + '\')"&gt;' + name + '&lt;/a&gt;');
  </code></pre>
  
  <p>I would like to get a json, but the results is a string.</p>
  
  <p>How can I fix that ?</p>
  
  <p>PS: sorry for my bad English. </p>