Sanitize non-JSON types in simple_return_json #112
No reviewers
Labels
No labels
accessibility
backport to lts
bug
code
critical
cygwin
documentation
duplicate
error reporting
external
feature
feedback
good first issue
help wanted
infrastructure
invalid
investigate
language spec
logs
lti
lts only
mac
maybe
qtype:bigbox
qtype:checkoff
qtype:expression
qtype:fileupload
qtype:multiexpression
qtype:multiplechoice
qtype:number
qtype:pythoncode
qtype:pythonic
qtype:pythonliteral
qtype:richtext
qtype:smallbox
question
question types
sandbox
security
syntax highlighting
ui/ux
wontfix
wsl
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
catsoop/catsoop!112
Loading…
Reference in a new issue
No description provided.
Delete branch "perryh/perryh-fix-handler-json"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Add util function
_to_jsonable, which goes in and fixes alldictkeys that are not JSON serializable, and recursively explores dictionaries and other collection types to fix any nested dictionaries that may exist.handler's json output attempts to recursively fix nested objects in keys/illegal jsonto Sanitize non-JSON types in simple_return_json4/4 ✅ passed in
pytest catsoop/test/test_defaulthandler.pyView command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.