// is wrong string (json-array)
$entity->attributes['tables'] string (29) ""[\"one\",\"two\",\"three\"]""
// cast after normally
$entity->tables string (21) "["one","two","three"]"
// raw casting array
json_encode(...) string (21) "["one","two","three"]"