title: Object of class stdClass could not be converted to string- can't find a solution
body: <p>I have the following code:</p>
  
  <pre><code>if ($difference)
  {
      $.post("recover_functions/upload_photos.php",
             {upload:$difference},
             function(response)
             {
                 alert($difference);
                 if (response.status)
                     alert("Successfully uploaded photos");
                 else
                     alert(response);
              });
  }
  </code></pre>
  
  <p>The alert will display:</p>
  
  <pre><code>{"difference":"[{\"aid\":\"100000543443572_1073741825\",\"backdated_time\":null,\"caption\":\"\",\"link\":\"http:\\\/\\\/www.facebook.com\\\/photo.php?fbid=614604095234366&amp;set=a.614604001901042.1073741825.100000543443572&amp;type=1\",\"pid\":\"100000543443572_2384218\",\"place_id\":null}]"}
  </code></pre>
  
  <p>And I get the `POST request like this: </p>
  
  <pre><code>$string_diff = $_POST['upload'];
  $array_diff  = json_decode($string_diff);
  
  echo $array_diff;
  </code></pre>
  
  <p>Not the response is <code>Object of class stdClass could not be converted to string</code>.
  Please help, I have a deadline (1 hour) and I can't get this working.</p>