title: SyntaxError: JSON.parse: unexpected non-whitespace character after JSON data at line 1 column 3 of the JSON data
body: <p>SyntaxError: JSON.parse: unexpected non-whitespace character after JSON data at line 1 column 3 of the JSON data</p>
  
  <p>....trim(b);if(a.JSON&amp;&amp;a.JSON.parse)return a.JSON.parse(b);if(n.test(b.replace(o,"@...</p>
  
  <p>jquery-....min.js (line 2, col 11012)</p>
  
  <p>My code</p>
  
  <pre><code>$(document).ready(function(){
          $('.cls_list_img3').live('click',function(){
              $('footer').after('&lt;div class="error_bg" id="info_message" style="top: 0px; display: block;background:gold"&gt;&lt;div class="center_auto"&gt;&lt;div class="info_message_text message_area" style="color:black" id="msg_pin"&gt;Please Wait....&lt;/div&gt;&lt;div onclick="return closeNotification()" class="info_close_btn button_area"&gt;&lt;/div&gt;&lt;div class="clearboth"&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="info_more_descrption"&gt;&lt;/div&gt;&lt;/div&gt;');
  
               var imgsrc = $(this).attr('rel');
  //alert(imgsrc);
              var img = imgsrc.replace('&amp;', '*');
              var img1 = img.replace('&amp;', '*');
              var img2 = img1.replace('&amp;', '*');
              var img3 = img2.replace('&amp;', '*');
              var img4 = img3.replace('&amp;', '*');
               var title = encodeURIComponent($.trim($("#title").val().toString()));
               var body = $(this).children('.body').val();
               var rss_title = $(this).children('.title').val();
               var category = $(this).children('.category').val();
               var rss_link = $(this).children('.rss_link').val();
                var data = "imgsrc=" + img4 + "&amp;source="+rss_link+"&amp;title=" + rss_title+"&amp;des="+body+"&amp;rss_title="+rss_title+"&amp;category="+category;
              // alert(body);
               //alert(rss_title);
                 $.ajax({type: "POST", url: "&lt;?php echo base_url() ?&gt;share/pinuploudOneclick",
                                        dataType: 'json',
                                      // async: true,
                                       data: data,
                                       success: function(data)
                  {
                      var obj = jQuery.parseJSON(data);
                      //alert(data);
                      alert(obj.message);
                         if(obj.message == 'error'){
                             $('#msg_pin').html('You already uploaded this Pin');
                  $('#info_message').css('background','lightpink');
  
                             }else{
                      $('#msg_pin').html('Pin uploaded successfully');
                      $('#info_message').css('background','lightgreen');
                  }
                      setTimeout(function(){ 
                          $('#info_message').remove();
                           }, 3000);
                     // $('#fadeimgoverlay').removeClass('fadeimgoverlay_bg');
                     // $('#fadeimgloading').hide();
                      //$('.event-containernarrow').html(data);
                     // $('.main_container').css('display', 'none');
                      //$('.bd_detail').html(data);
                      //$('body').css('overflow', 'hidden');
                  },
                  dataType: "html"
              });
  
  
  
  
  
  
  
              })
          });
  </code></pre>