validate json
make URL base env variables