protected function createJsonConfig($name)
    {
        if ($this->files->exists($path = $this->getJsonPath())) {
            $this->error('Widget json config already exists!');

            return;
        }

        $stub = $this->files->get($this->getJsonStubPath());
        $stub = $this->replaceNamespace($stub, $name)->replaceClass($stub, $name);
        $stub = $this->replaceFQCN($stub, $name);
        $stub = $this->replaceView($stub);

        $this->files->put($path, $stub);

        $this->info('Json config created successfully.');
    }