Detects and parses JSON text into R objects

parse_json(x)

Arguments

x

Input object

Value

Parsed JSON (if detected)

Examples

# NOT RUN {
## parse JSON text found on espn's homepage
e <- parse_json("http:/www.espn.com/")

## view parsed object
str(e, 3)

## parse JSON from html string
parse_json('<html>{\"mpg\":21,\"cyl\":6,\"disp\":160,\"lgl\":false}</html>')
# }