We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Allow the use of strings as loading or saving paths for JSON.
It maintains the original API, but allows strings to be passed in when passing in file descriptors.This makes it easy to load or save JSON files.
Just like this:
import json data = { "a":"b" } json.dump(data, "a.json") # before: json.dump(data, open("a.json","w"))
I have submitted a pull request. #126626
No response given
#87623 #85456 #80559
The text was updated successfully, but these errors were encountered:
I have read some discussions about this issue.I think this is a meaningless pull request, so I will close it.
Sorry, something went wrong.
If you still want a convenience function, you can use https://pypi.org/project/jsonyx.
No branches or pull requests
Feature or enhancement
Proposal:
Allow the use of strings as loading or saving paths for JSON.
It maintains the original API, but allows strings to be passed in when passing in file descriptors.This makes it easy to load or save JSON files.
Just like this:
I have submitted a pull request. #126626
Has this already been discussed elsewhere?
No response given
Links to previous discussion of this feature:
#87623
#85456
#80559
Linked PRs
The text was updated successfully, but these errors were encountered: