Make it work on basicauth
Transfer to jsonify own package