public function inspectJsonColumns()
{
foreach ($this->jsonColumns as $col) {
if (!$this->showJsonColumns) {
$this->hidden[] = $col;
}
$obj = json_decode($this->{$col});
if (is_object($obj)) {
foreach ($obj as $key => $value) {
$this->flagJsonAttribute($key, $col);
if ($this->showJsonAttributes) {
$this->appends[] = $key;
}
}
}
}
}