tests/charNULL.R

# issue spotted by Alexandre Sieira
# and his example code.
library(RJSONIO)

fromJSON("[ 1, null, 4 ]", asText = TRUE, simplify = TRUE)
fromJSON('[ "a", null, "d" ]', asText = TRUE, simplify = TRUE)

fromJSON("[ 1, null, 4 ]", asText = TRUE, simplify = TRUE, nullValue = -999L)
fromJSON('[ "a", null, "d" ]', asText = TRUE, simplify = TRUE, nullValue = "999")

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.