R Under development (unstable) (2026-09-12 r90532) -- "Unsuffered Consequences" Copyright (C) 2026 The R Foundation for Statistical Computing Platform: x86_64-pc-linux-gnu R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. Natural language support but running in an English locale R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > pkgname <- "janssonr" > source(file.path(R.home("share"), "R", "examples-header.R")) > options(warn = 1) > library('janssonr') > > base::assign(".oldSearch", base::search(), pos = 'CheckExEnv') > base::assign(".old_wd", base::getwd(), pos = 'CheckExEnv') > cleanEx() > nameEx("from_json") > ### * from_json > > flush(stderr()); flush(stdout()) > > ### Name: from_json > ### Title: Parse JSON strictly > ### Aliases: from_json > > ### ** Examples > > from_json('{"a": 1, "b": [true, null]}') jansson/hashtable.c:217:14: runtime error: index 1 out of bounds for type 'char [1]' #0 0x7b00d0531059 in init_pair jansson/hashtable.c:217 #1 0x7b00d0531059 in hashtable_set jansson/hashtable.c:247 #2 0x7b00d05321e1 in json_object_setn_new_nocheck jansson/value.c:140 #3 0x7b00d0539b74 in parse_object jansson/load.c:717 #4 0x7b00d0539b74 in parse_value jansson/load.c:831 #5 0x7b00d053a826 in parse_json jansson/load.c:867 #6 0x7b00d053aebc in json_loadb jansson/load.c:966 #7 0x7b00d0507b5e in jr_parse /data/localhost/ripley/R/packages/tests-gcc-SAN/janssonr/src/decode.c:209 #8 0x00000075ca18 in R_doDotCall /data/localhost/ripley/R/svn/R-devel/src/main/dotcode.c:754 #9 0x0000009008d7 in bcEval_loop /data/localhost/ripley/R/svn/R-devel/src/main/eval.c:8704 #10 0x0000008d7c8b in bcEval /data/localhost/ripley/R/svn/R-devel/src/main/eval.c:7533 #11 0x000000877eba in Rf_eval /data/localhost/ripley/R/svn/R-devel/src/main/eval.c:1167 #12 0x00000088e6ca in R_execClosure /data/localhost/ripley/R/svn/R-devel/src/main/eval.c:2398 #13 0x0000008923cd in applyClosure_core /data/localhost/ripley/R/svn/R-devel/src/main/eval.c:2314 #14 0x000000878568 in Rf_applyClosure /data/localhost/ripley/R/svn/R-devel/src/main/eval.c:2333 #15 0x000000878568 in Rf_eval /data/localhost/ripley/R/svn/R-devel/src/main/eval.c:1278 #16 0x000000a20e78 in Rf_ReplIteration /data/localhost/ripley/R/svn/R-devel/src/main/main.c:264 #17 0x000000a20e78 in R_ReplConsole /data/localhost/ripley/R/svn/R-devel/src/main/main.c:319 #18 0x000000a3eb3a in run_Rmainloop /data/localhost/ripley/R/svn/R-devel/src/main/main.c:1239 #19 0x000000a3ebd2 in Rf_mainloop /data/localhost/ripley/R/svn/R-devel/src/main/main.c:1246 #20 0x00000041209f in main /data/localhost/ripley/R/svn/R-devel/src/main/Rmain.c:29 #21 0x7f00d760a680 in __libc_start_call_main (/lib64/libc.so.6+0x3680) (BuildId: 5bd941be836f538fe5e10eff508f7f5dd94905a6) #22 0x7f00d760a797 in __libc_start_main@GLIBC_2.2.5 (/lib64/libc.so.6+0x3797) (BuildId: 5bd941be836f538fe5e10eff508f7f5dd94905a6) #23 0x000000412a64 in _start (/data/localhost/ripley/R/gcc-SAN3/bin/exec/R+0x412a64) (BuildId: 072b35eb56db30f90eaaf0fbe30938156dac663c) $a [1] 1 $b $b[[1]] [1] TRUE $b[[2]] NULL > from_json("[1, 2, 3]") [[1]] [1] 1 [[2]] [1] 2 [[3]] [1] 3 > > > > cleanEx() > nameEx("to_json") > ### * to_json > > flush(stderr()); flush(stdout()) > > ### Name: to_json > ### Title: Serialize to JSON strictly > ### Aliases: to_json > > ### ** Examples > > to_json(list(a = 1L, b = list(TRUE, NULL))) [1] "{\"a\":1,\"b\":[true,null]}" > to_json(list()) [1] "[]" > to_json(structure(list(), names = character(0))) [1] "{}" > > > > ### *