transform arguments of the 'register' method in a real JSON Array