code: def get_json(session, url, params: dict = None):
      
      res = session.get(url, params=params)
      if res.status_code >= 400:
          raise parse_error(res)
      return res.json()
docs: Get JSON from a Forest endpoint.