We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 65a1411 commit 6bb7bc0Copy full SHA for 6bb7bc0
unix-ffi/json/json/__init__.py
@@ -413,4 +413,6 @@ def loads(
413
kw["parse_int"] = parse_int
414
if parse_constant is not None:
415
kw["parse_constant"] = parse_constant
416
+ if isinstance(s, bytes):
417
+ s = s.decode('utf-8')
418
return cls(**kw).decode(s)
0 commit comments