title: json_decode() expects parameter 1 to be string, object given
body: <p>I have output object class from query like this,</p>
  
  <pre><code>$so_result = stdClass#14 {
      "colorname" =&gt; "Silver"
    , "colorgroupname" =&gt; "MEDIUM SILVER"
    , "colorcode" =&gt; "1D4"
    , "brand" =&gt; null
  };
  
  
  echo json_decode($so_result,true);
  </code></pre>
  
  <p>and i use json for append into div modal when user click and the modal show with the result</p>
  
  <p>this my ajax to call and append the result.</p>
  
  <pre><code>$.ajax({
                  type:"GET",
                  datatype:"json",
                  url:"",
                  data:data,
                  cache:false,
                  success: function(data) {
                          $('#color').append(data);
                  }
              });
  </code></pre>
  
  <p>how make the result can show.</p>