Jquery User input into JSON <p>I have a complex form that the user has some selections to make and also a few textareas to fill in with info. The form works great and the data is passed via JSON to my MVC controller and all works fine.</p> <p>However users being users I have found that some are using special chars like "£$%&amp;() etc and these are causing the JSON to be formatted incorrectly so the Controller Action is not binding correctly.</p> <p>SO my question is how can I encode the text input from the user so that it will form valid JSON.</p> <p>Current way I collect the data is:</p> <pre><code>var TelNo = $("#TelNo"). var EmailMessage = $("#EmailMessage").val(); </code></pre> <p>Thanks.</p> <p>Cliff.</p>