parent
8e174ba7de
commit
08e29b9f1f
15 changed files with 29 additions and 25 deletions
|
|
@ -3368,7 +3368,7 @@ def js_to_json(code, vars={}, *, strict=False):
|
|||
try:
|
||||
if not strict:
|
||||
json.loads(vars[v])
|
||||
except json.decoder.JSONDecodeError:
|
||||
except json.JSONDecodeError:
|
||||
return json.dumps(vars[v])
|
||||
else:
|
||||
return vars[v]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue