docs: def validate_json_field(dist, attr, value):
      """
      Check for json validity.
      """
  
      try:
          is_json_compat(value)
      except ValueError as e:
          raise DistutilsSetupError("%r %s" % (attr, e))
  
      return True