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

Enhancement request for JSON IO-related APIs #162

Merged
merged 3 commits into from
Sep 10, 2019
Merged

Conversation

tkf
Copy link
Contributor

@tkf tkf commented May 21, 2019

This PR extends save/load APIs.

  1. The first commit adds io-accepting variants for the save/load functions (e.g., save(Stream(format"vegalite", io), spec))

  2. The second commit adds indent keyword argument so that save functions can pretty-print JSON.

  3. The third commit lets show(IOContext(stdout, :compact=>false), "text/plain", spec) use the pretty-printed JSON and vl"..." macro to produce evaluatable Julia code. This is useful, e.g., for generating executable Julia code from DataVoyager output.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.3%) to 69.682% when pulling 7684703 on tkf:io into 75b169b on fredo-dedup:master.

2 similar comments
@coveralls
Copy link

Coverage Status

Coverage increased (+0.3%) to 69.682% when pulling 7684703 on tkf:io into 75b169b on fredo-dedup:master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.3%) to 69.682% when pulling 7684703 on tkf:io into 75b169b on fredo-dedup:master.

@davidanthoff davidanthoff self-requested a review May 21, 2019 03:28
@davidanthoff davidanthoff merged commit 217da12 into queryverse:master Sep 10, 2019
@davidanthoff
Copy link
Member

Cool, much appreciated, sorry that it took so long to merge!

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 this pull request may close these issues.

3 participants