Description Usage Arguments Details Value Examples
The function json_types() inspects the JSON associated with each row of the tbl_json data.frame, and adds a new column ("type" by default) that identifies the type according to the JSON standard at http://json.org/.
1 | json_types(x, column.name = "type")
|
x |
a tbl_json object |
column.name |
the name to specify for the type column |
This is particularly useful for inspecting your JSON data types, and can added after gather_array() (or gather_keys()) to inspect the types of the elements (or values) in arrays (or objects).
a tbl_json object with column.name column that tells the type
1 2 | library(magrittr) # for %>%
c('{"a": 1}', '[1, 2]', '"a"', '1', 'true', 'null') %>% json_types
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.