making it so that process-url returns json isntead of just redirecting