# NOT RUN {
#watch out for R turning null into FALSE
fromJSON( "[true, false, null]" )
##[1] TRUE FALSE __FALSE__
#but if you use a hash, this will be avoided
fromJSON( '{"a":true, "b":false, "c":null}' )
#R vs C
x <- toJSON( iris )
system.time( y <- fromJSON(x) )
system.time( y2 <- fromJSON(x,method = "R") )
# }
Run the code above in your browser using DataLab