title: How to access this part of the object
body: <p>I am using curl to POST data to a json file on a drupal server. I have that working and it returns a string like so:</p>
  
  <pre><code>{
    "result":"success",
    "user":{
      "uid":"15",
      "theme":"",
      "signature":"",
      "signature_format":"plain_text",
      "created":"1335991710",
      "access":"1363715947",
      "login":1363716262,
      "status":"1",
      "timezone":"America/Los_Angeles",
      "language":"",
      "picture":"0",
      "data":false,
      "uuid":"89847add-54c8-c4b4-5dfc-bddc96e99919",
      "roles":{
        "2":"authenticated user",
        "4":"dOP staff"
      },
      "field_user_client":{
        "und":[
          {
            "nid":"17740"
          }
        ]
      }
    }
  }
  </code></pre>
  
  <p>I am trying to get at the <code>result</code> part of the json string. I've tried casting the string as an object but that didn't work. I've tried the following:</p>
  
  <pre><code>&lt;?php
  $curlResult = curl_exec($ch);
  echo $curlResult-&gt;result; //fails
  ?&gt;
  </code></pre>
  
  <p>What do I need to do to make this work?</p>