Changed CrudTrait::addFakes to support objects
Changed CrudTrait::addFakes to support objects

if ((is_array($column_contents) || $column_contents instanceof Traversable) && count($column_contents))

results in always false, since json_decode($this->{$column}) return an object (for more information http://php.net/manual/en/class.traversable.php#118575).

In order to make it works I added is_object($column_contents).
Alternatively we can use json_decode($this->{$column}, true) so it will return an associative array.

Example not working:
$contents = '{"text_1":"sadfasdfasdf<\/p>"}';
$column_contents = json_decode($contents);
>>> is_array($column_contents) 
=> false
>>> $column_contents instanceof Traversable
=> false

Example working:
$contents = '{"text_1":"sadfasdfasdf<\/p>"}';
$column_contents = json_decode($contents);
>>> is_object($column_contents) 
=> true
Laravel-Backpack/crud,Laravel-Backpack/crud,Laravel-Backpack/crud,Laravel-Backpack/crud