tests/con2.R

library(RJSONIO)
con = textConnection("[1, 2, 3,\n4]"); fromJSON(con)

try({con = textConnection("[1, 2, 3,]"); fromJSON(con)})

Try the RJSONIO package in your browser

Any scripts or data that you put into this service are public.

RJSONIO documentation built on Nov. 27, 2023, 5:09 p.m.