This is my code for html
Then I append an inpunt to #content:
$( document ).ready
I think you probably just weren't separating correctly. Try this exemple:
onclick="mySup(\''+json.id+'\',\''+json.description+'\');"