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

Add JSON.printfile function #325

Open
stelmo opened this issue Jul 27, 2021 · 0 comments · May be fixed by #326
Open

Add JSON.printfile function #325

stelmo opened this issue Jul 27, 2021 · 0 comments · May be fixed by #326

Comments

@stelmo
Copy link

stelmo commented Jul 27, 2021

Hi, is there a reason why JSON.printfile(filename::String, dictionary_object) does not exist? Like an analog of JSON.parsefile?

If not, would it be a simple matter of adding in a one liner in the package like JSON.printfile(fname, dict) = open(io -> JSON.print(io, dict), "$fname.json", "w")?

@exaexa exaexa linked a pull request Jul 27, 2021 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant