I get following error:
Error Notice: Trying to get property of non-object
But it works if I remove the POST tag if (isset($_POST['curlPost'])) {
if (isset($_POST['curlPost'])) {
    $output = shell_exec('curl -X GET ...');
    $goster = json_decode($output);
    foreach ($goster as $gos) {
        echo $gos->value."<br>";
        echo $gos->editable."<br>";
    }
}
Trying to get property of non-object
JSON Response:
{
  "success": true,
  "errors": [
    {}
  ],
  "messages": [
    {}
  ],
  "result": {
    "id": "always_online",
    "value": "on",
    "editable": true,
    "modified_on": "2014-01-01T05:20:00.12345Z"
  }
}
what is the error?
 
    