public function json($file = null)
    {
        if (is_null($file)) {
            $file = 'component.json';
        }

        return new Json($this->getPath() . '/' . $file, $this->app['files']);
    }