protected function wrapJsonFieldAndPath($column)
    {
        $parts = explode('->', $column, 2);

        $field = $this->wrap($parts[0]);

        $path = count($parts) > 1 ? ', '.$this->wrapJsonPath($parts[1], '->') : '';

        return [$field, $path];
    }
protected function wrapJsonFieldAndPath($column)
    {
        $parts = explode('->', $column, 2);

        $field = $this->wrap($parts[0]);

        $path = count($parts) > 1 ? ', '.$this->wrapJsonPath($parts[1], '->') : '';

        return [$field, $path];
    }
protected function wrapJsonFieldAndPath ( $ column ) { $ parts = explode ( '->' , $ column , 2 ) ; $ field = $ this -> wrap ( $ parts [ 0 ] ) ; $ path = count ( $ parts ) > 1 ? ', ' . $ this -> wrapJsonPath ( $ parts [ 1 ] , '->' ) : '' ; return [ $ field , $ path ] ; }
Split the given JSON selector into the field and the optional path and wrap them separately.

@param  string  $column
@return array
Split the given JSON selector into the field and the optional path and wrap them separately .