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

Discussion: JSON #32

Open
johncmerfeld opened this issue Jan 21, 2020 · 0 comments
Open

Discussion: JSON #32

johncmerfeld opened this issue Jan 21, 2020 · 0 comments

Comments

@johncmerfeld
Copy link
Collaborator

As we've discussed, it would be cool to extend datascroller to other formats besides CSVs. Probably the next most useful datatype to support is object data – JSON.

Setting aside the bigger issue for a moment, there are a few ways we could implement this in the scroller. Python's pprint module has some nice options. The json module has a printing function that does okay too. This guy also wrote a pretty-printing function that looks nice – it looks like some of his ideas were adopted in the newest version of pprint though.

The bigger issue, of course, is how we integrate this into the existing scroller functionality. The choice seems to be between 1) having a separate class(es) for non-tabular data or 2) making the existing classes more general with tabular and non-tabular data as specific cases. Option 1 sounds easier to do, but option 2 sounds better from a code/design perspective.

So, anyway, wanted to post these thoughts and leave the discussion open.

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