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

[feature request] print class of every entry #14

Closed
tim-salabim opened this issue Aug 11, 2016 · 3 comments
Closed

[feature request] print class of every entry #14

tim-salabim opened this issue Aug 11, 2016 · 3 comments

Comments

@tim-salabim
Copy link

tim-salabim commented Aug 11, 2016

Most often, I use str to figure out the class of an entry of an object (e.g. numeric vs. integer, factor vs. character). jsonedit only prints the class for selected entries (in the example below only for the entire object - class: "SpatialPointsDataFrame" and slot proj4string - class: "CRS"). It would be nice to see this for every entry, similar to what str prints, e.g. for slot data: "data.frame" [32, 7] and below that e.g. founded: "int" [32]

library(listviewer)
library(mapview)

str(breweries91)
jsonedit(breweries91)

@timelyportfolio
Copy link
Owner

Agree this would be very nice, and listless offers a way to possibly achieve this. Not sure how to plug into jsoneditor. Also see #7.

@timelyportfolio
Copy link
Owner

reactjson provides JS type, which I know is not the same. I unfortunately don't think this is possible without modification of the underlying JS libraries, which due to their complexity, I am not willing to do.

@tim-salabim
Copy link
Author

No problem!

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

2 participants