public static function jsonSaveData(\Object\Table $model, array $values, \Object\Form\Base & $form, string $id_column) : bool {
		if (!empty($form->values[$id_column])) {
			$values[$id_column] = $form->values[$id_column];
		}
		$result = $model->collection()->merge($values);
		if (!$result['success']) {
			$form->error(DANGER, $result['error']);
			return false;
		}
		$form->values[$id_column] = $form->values[$id_column] ?? $result['new_serials'][$id_column];
		return true;
	}