colearendt / tidyjson

Tidy your JSON data in R with tidyjson
Other
182 stars 15 forks source link

Print tbl_json objects with truncated JSON string #61

Closed jeremystan closed 8 years ago

jeremystan commented 8 years ago

tbl_json objects should print like tbl_df objects, except they should have an additional column at the end, titled something like attr("JSON"), that shows the first N characters of the concise JSON representation of the JSON attribute.

Something like:

document.id key attr("JSON")
----------- --- ------------
1           "a" [1, 2, 3]
2           "b" true
3           "c" {"k1": "value", "k2": [1, 2], "k3...
jeremystan commented 8 years ago

Need to go through and update vignettes now, and maybe review examples to make sure they are still clear.