Using request.json() instead of request.text