title: JSON String as Javascript function argument
body: <p>I am trying to define a pure JSON string as an argument in a Javascript function.</p>
  
  <p>Below is the way I want to define it:</p>
  
  <pre><code>&lt;a href="#" onclick="js_func('arg_1', 'arg_2', '{"key": "value"}'); return false"&gt;Link&lt;/a&gt;
  </code></pre>
  
  <p>Firebug gives me an error alert: unterminated string literal, even when I escape the double-quotes on the JSON string.</p>
  
  <p>How can I solve this?</p>
  
  <p>Thanks.</p>