framework/RedKiteCms/EventSystem/Event/JsonFileEvent.php
public function setFileContent($fileContent)
    {
        // Accapts only a json value
        if (null === json_decode($fileContent)) {
            DataLogger::log(
                sprintf(
                    'Event "%s" discharged the "%s" content because it is not a valid json',
                    get_class($this),
                    $fileContent
                ),
                DataLogger::WARNING
            );

            return $this;
        }

        $this->fileContent = $fileContent;

        return $this;
    }
public function setFileContent($fileContent)
    {
        // Accapts only a json value
        if (null === json_decode($fileContent)) {
            DataLogger::log(
                sprintf(
                    'Event "%s" discharged the "%s" content because it is not a valid json',
                    get_class($this),
                    $fileContent
                ),
                DataLogger::WARNING
            );

            return $this;
        }

        $this->fileContent = $fileContent;

        return $this;
    }
Sets the json file contents
@param $fileContent

@return $this