tests/bigInt.R

library(RJSONIO)
i = fromJSON("[123]")[[1]]
is.integer(i)
i == 123L


x = fromJSON("[12345678901]")[[1]]
is.numeric(x[[1]])
x == 12345678901

x = fromJSON("[-12345678901]")[[1]]
is.numeric(x[[1]])
x == -12345678901

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.