title: Jquery-Json returns [object,object] after ajax call
body: <p>I have this following ajax to call my service which fetches some records from the Database and fills it in my frontend...but i get the json:unexpected character error...can u please help me in solving this ...    </p>
  
  <pre><code>'http://localhost/WcfService/Service1.svc/remarksList';
  
      var tempyear="";
  
      $.ajax({
                      url: urlToHandler,
                      data:JSON.stringify({oei:{"reqNo1":reqNo,"loginid":userid}}),
                      type: 'POST',
                      dataType:"json",
                      contentType: 'application/json',
                      success: function(data) {    
  
                      alert(data.fillRemarksListResult);
                      myData = JSON.parse(data.fillRemarksListResult, function (key, value) {
          var type;
          if (value &amp;&amp; typeof value === 'object') {
              type = value.type;
              if (typeof type === 'string' &amp;&amp; typeof window[type] === 'function') {
                  return new (window[type])(value);
              }
          }
          return value;
      });
      alert(myData);
          $.each(data.fillRemarksListResult,function(key,val){
  
  
                  alert(val.rmrkreqNo1);
                          });
                      },
                      error: function(data, status, jqXHR) {                       
                          alert('There was an error.');
                      }
                  }); // end $.ajax
  
  });
  </code></pre>
  
  <p><strong>Now i get this error :</strong></p>
  
  <p>*<strong><em>Json.parse:unexpected character
  myData=JSON.parse(data.fillRemarksListResult, function (key, value) {</em>*</strong></p>
  
  <p><strong>ALSO MY AJAX CALL RETURNS</strong> 
  [object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object] when given as alert...</p>