code: def is_json(self, headers):
          
          ret = False
          ct = headers.get("content-type", "").lower()
          if ct:
              ret = ct.lower().rfind("json") >= 0
          return ret
docs: return true if content_type is a json content type