Fixing traceback caused by incorrect argument passing to json.dumps

Fixes #5756
Allowed get_url with FTP passwords

fixes: #5788