tests/empty.R

library(RJSONIO)

str = "[ 1, {}, [1, 3, 5] ]"
v = fromJSON(str)
str1 = toJSON(v, collapse = " ")

stopifnot( any( duplicated( gsub("[[:space:]]", "", c(str, str1)))))
duncantl/RJSONIO documentation built on Aug. 30, 2023, 1:21 a.m.