application/Espo/Core/Utils/File/Manager.php
public function putContentsJson($path, $data)
    {
        if (!Utils\Json::isJSON($data)) {
            $data = Utils\Json::encode($data, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES);
        }

        return $this->putContents($path, $data, LOCK_EX);
    }
public function putContentsJson($path, $data)
    {
        if (!Utils\Json::isJSON($data)) {
            $data = Utils\Json::encode($data, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES);
        }

        return $this->putContents($path, $data, LOCK_EX);
    }
public function putContentsJson ( $ path , $ data ) { if ( ! Utils \ Json :: isJSON ( $ data ) ) { $ data = Utils \ Json :: encode ( $ data , JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES ) ; } return $ this -> putContents ( $ path , $ data , LOCK_EX ) ; }
Save JSON content to file

@param string | array $path
@param string $data
@param  integer $flags
@param  resource  $context

@return bool
Save JSON content to file