title: Unterminated string passed in Json
body: <p>I am getting below error when i serialize json.
  Unterminated string passed in.
  This is the code i have.</p>
  
  <pre><code>function updatemetaData(docid) {
         $(document).ready(function(){
             var list = new Array();
             var strOrderArr = '';
                 $('input[id=varchar]').each(function (i, item) {
                 list.push($(item).val());
                 strOrderArr = strOrderArr + "{";
                 strOrderArr = strOrderArr + "'upld_id':" + "'" + docid + "'";
                 strOrderArr = strOrderArr + "'upld_contentvalue':" + "'" + $(item).val() + "'";
                 strOrderArr = strOrderArr + "},";
                 });
                 var jsonOfLog = JSON.stringify(strOrderArr);
                 $.ajax({
  
             type: 'POST',
             data: "jsonOfLog=" + jsonOfLog,
             dataType: 'json',
             url: '/documentVerification/updatedocDetails',
             success: function (data) {
                     fun_toastr_notify('success', 'Document has been Updated');
                     $("#dialog").dialog("close");
                 }
                      , error: function (error) {
                          fun_toastr_notify('error', data, 'Error');
                      }
         });
         });
     }
  
   listInuploadContent = (CommonUtility.JsonDeserialize&lt;List&lt;tr_upld_content&gt;&gt;("[" + jsonOfLog.Substring(0, jsonOfLog.Length - 1) + "]")) as List&lt;tr_upld_content&gt;;
  public static T JsonDeserialize&lt;T&gt;(string json)
             {
                 try
                 {
                     var serializer = new JavaScriptSerializer();
                     return serializer.Deserialize&lt;T&gt;(json);
                 }
                 catch (Exception ex)
                 {
                     throw ex;
                 }
             }
  </code></pre>
  
  <p>Below is the output with errors.
  Unterminated string passed in. (146): ["{'upld_id':'2185''upld_contentvalue':'123'},{'upld_id':'2185''upld_contentvalue':'31/08/2016'},{'upld_id':'2185''upld_contentvalue':'Karkala<code>'},]</code></p>