Currently, this isn't very efficient as the entire contents of the connection are read into R as a string and then the JSON parsed from there.

from_json_conn(conn, opts = list(), ...)

Arguments

conn

connection object. e.g. url('https://jsonplaceholder.typicode.com/todos/1')

opts

Named list of options for parsing. Usually created by from_opts()

...

Other named options can be used to override any options in opts. The valid named options are identical to arguments to from_opts()

Value

R object

Details

For plain text files it is faster to use from_json_file().

See also

Examples

if (FALSE) {
from_json_conn(url("https://api.github.com/users/hadley/repos"))
}