Skip to content

Commit b8e0054

Browse files
committed
fix(examples): use correct json serialising method
1 parent 0067a13 commit b8e0054

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

examples/workers/script_upload.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
"""
2626

2727
import os
28-
import json
2928

3029
from cloudflare import Cloudflare, BadRequestError
3130

@@ -88,7 +87,7 @@ def main() -> None:
8887
},
8988
)
9089
print("Script Upload success!")
91-
print(json.dumps(script, indent=2))
90+
print(script.to_json(indent=2))
9291
except BadRequestError as err:
9392
print("Script Upload failure!")
9493
print(err)

0 commit comments

Comments
 (0)