code: def serialize_artifact_json_blobs(artifacts):
      
      for artifact in artifacts:
          blob = artifact['blob']
          if (artifact['type'].lower() == 'json' and
                  not isinstance(blob, str)):
              artifact['blob'] = json.dumps(blob)
  
      return artifacts
docs: Ensure that JSON artifact blobs passed as dicts are converted to JSON