I get this warning in my error logs and wanted to know how to correct this issues in my code.
Warning: PHP Notice: Undefined property: stdClass::$records in script
isset() is fine for top level, but empty() is much more useful to find whether nested values are set. Eg:
if(isset($json['foo'] && isset($json['foo']['bar'])) { $value = $json['foo']['bar'] }
Or:
if (!empty($json['foo']['bar']) { $value = $json['foo']['bar'] }