Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why JSON aren't you really JSON with double quotes? #93

Open
martbhell opened this issue Nov 29, 2023 · 0 comments
Open

Why JSON aren't you really JSON with double quotes? #93

martbhell opened this issue Nov 29, 2023 · 0 comments

Comments

@martbhell
Copy link
Owner

          This causes a stack trace, also after manually uploading a schedule that should be OK (application/json) ?
  File "/workspace/main.py", line 240, in update_schedule
    changes = diff(json.loads(old_content), json.loads(content))
  File "/layers/google.python.runtime/python/lib/python3.10/json/__init__.py", line 339, in loads
    raise TypeError(f'the JSON object must be str, bytes or bytearray, '
TypeError: the JSON object must be str, bytes or bytearray, not dict

Originally posted by @martbhell in #91 (comment)

Hacked around by adding str().repliace("'", '"') in a few places. Feels like it's related to the json dumps vs loads..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant