public function setInstanceConfig($instanceConfig)
    {
        $this->instanceConfig = json_encode($instanceConfig);

        if (json_last_error() !== JSON_ERROR_NONE) {
            throw new \Exception(json_last_error_msg());
        }
    }
public function setInstanceConfig($instanceConfig)
    {
        $this->instanceConfig = json_encode($instanceConfig);

        if (json_last_error() !== JSON_ERROR_NONE) {
            throw new \Exception(json_last_error_msg());
        }
    }
public function setInstanceConfig ( $ instanceConfig ) { $ this -> instanceConfig = json_encode ( $ instanceConfig ) ; if ( json_last_error ( ) !== JSON_ERROR_NONE ) { throw new \ Exception ( json_last_error_msg ( ) ) ; } }
Sets the config that will be stored in the DB as JSON

@param array $instanceConfig new value test

@return void
@throws \Exception
Sets the config that will be stored in the DB as JSON