use utf8 endoding for json output.

This commit is contained in:
Yoshihiro OKUMURA 2023-06-06 17:04:32 +09:00
parent 1ffafd25ba
commit da57fc7c6c
Signed by: orrisroot
GPG Key ID: 470AA444C92904B2
2 changed files with 2 additions and 2 deletions

View File

@ -29,4 +29,4 @@ class FileMetadataCommand(BaseCommand):
raise IllegalArgumentException(f"File `{r_basename}` not found.")
file_api = FileApi(connection)
metadata = file_api.metadata(file)
print(json.dumps(metadata))
print(json.dumps(metadata, ensure_ascii=False))

View File

@ -21,4 +21,4 @@ class MetadataCommand(BaseCommand):
folder = self._find_folder(connection, laboratory, r_path, args.password)
folder_api = FolderApi(connection)
metadata = folder_api.metadata(folder.id)
print(json.dumps(metadata))
print(json.dumps(metadata, ensure_ascii=False))