protected function saveCredentialJson(string $file, $data)
    {
        $content = json_encode($data, JSON_UNESCAPED_UNICODE | JSON_PARTIAL_OUTPUT_ON_ERROR | JSON_PRETTY_PRINT);
        $this->filesystem->dumpFile($file, $content);
    }
protected function saveCredentialJson(string $file, $data)
    {
        $content = json_encode($data, JSON_UNESCAPED_UNICODE | JSON_PARTIAL_OUTPUT_ON_ERROR | JSON_PRETTY_PRINT);
        $this->filesystem->dumpFile($file, $content);
    }
protected function saveCredentialJson ( string $ file , $ data ) { $ content = json_encode ( $ data , JSON_UNESCAPED_UNICODE | JSON_PARTIAL_OUTPUT_ON_ERROR | JSON_PRETTY_PRINT ) ; $ this -> filesystem -> dumpFile ( $ file , $ content ) ; }
Writes a data to a JSON file

@param string $file The file
@param mixed $data The data
@throws \RuntimeException If something wrong
Writes a data to a JSON file