Serde: improve js-python bridge

This commit is contained in:
Johannes Kirschbauer
2024-10-17 10:26:14 +02:00
parent 38b088e8aa
commit 688671bab8
2 changed files with 33 additions and 6 deletions

View File

@@ -51,7 +51,8 @@ from clan_cli.errors import ClanError
def sanitize_string(s: str) -> str:
# Using the native string sanitizer to handle all edge cases
# Remove the outer quotes '"string"'
return json.dumps(s)[1:-1]
# return json.dumps(s)[1:-1]
return s
def dataclass_to_dict(obj: Any, *, use_alias: bool = True) -> Any: