diff --git a/mriqc/interfaces/webapi.py b/mriqc/interfaces/webapi.py index 123d8410..221938d8 100644 --- a/mriqc/interfaces/webapi.py +++ b/mriqc/interfaces/webapi.py @@ -163,8 +163,8 @@ def _run_interface(self, runtime): | orjson.OPT_APPEND_NEWLINE | orjson.OPT_SERIALIZE_NUMPY ), - ) - Path('payload.json').write_bytes(payload_str) + ).decode('utf-8') + Path('payload.json').write_text(payload_str) self._results['payload_file'] = str(Path('payload.json').absolute()) try: