docs: def add_job_from_json(self, job_json, destructive=False):
          """ Construct a new Job from an imported JSON spec. """
          logger.debug('Importing job from JSON document: {0}'.format(job_json))
          rec = self.backend.decode_import_json(job_json)
          if destructive:
              try:
                  self.delete_job(rec['name'])
              except DagobahError:  # expected if no job with this name
                  pass
          self._add_job_from_spec(rec, use_job_id=False)
  
          self.commit(cascade=True)