json_functions {tidyjson}R Documentation

Navigates nested objects to get at names of a specific type, to be used as arguments to spread_values

Description

Note that these functions fail if they encounter the incorrect type. Note that jnumber() is an alias for jdouble().

Usage

jstring(..., recursive = FALSE)

jlogical(..., recursive = FALSE)

jinteger(..., recursive = FALSE)

jdouble(..., recursive = FALSE)

jnumber(..., recursive = FALSE)

Arguments

...

a quoted or unquoted sequence of strings designating the object name sequence you wish to follow to find a value

recursive

logical indicating whether second level and beyond objects should be extracted. Only works when there exists a single value in the nested json object

Value

a function that can operate on parsed JSON data

See Also

spread_values for using these functions to spread the values of a JSON object into new columns


[Package tidyjson version 0.3.2 Index]