Platformsh\Cli\Command\Variable\VariableSetCommand::validateJson PHP Method

validateJson() protected method

protected validateJson ( $string ) : boolean
$string
return boolean
    protected function validateJson($string)
    {
        $null = json_decode($string) === null;
        return !$null || $null && $string === 'null';
    }