code: def is_json(value,
              schema = None,
              json_serializer = None,
              **kwargs):
      
      try:
          value = validators.json(value,
                                  schema = schema,
                                  json_serializer = json_serializer,
                                  **kwargs)
      except SyntaxError as error:
          raise error
      except Exception:
          return False
  
      return True
docs: Indicate whether ``value`` is a valid JSON object.
  
      .. note::
  
        ``schema`` supports JSON Schema Drafts 3 - 7. Unless the JSON Schema indicates the
        meta-schema using a ``$schema`` property, the schema will be assumed to conform to
        Draft 7.
  
      :param value: The value to evaluate.
  
      :param schema: An optional JSON schema against which ``value`` will be validated.
      :type schema: :class:`dict <python:dict>` / :class:`str <python:str>` /
        :obj:`None <python:None>`
  
      :returns: ``True`` if ``value`` is valid, ``False`` if it is not.
      :rtype: :class:`bool <python:bool>`
  
      :raises SyntaxError: if ``kwargs`` contains duplicate keyword parameters or duplicates
        keyword parameters passed to the underlying validator