janssonr apt repository

Binary r-cornball-janssonr packages for janssonr, strict JSON encode/decode for R via the system Jansson C library. The binary needs only the libjansson4 runtime, never a compiler or libjansson-dev.

Enable the repository

Set Suites to your release codename, noble for 24.04:

sudo tee /etc/apt/sources.list.d/janssonr.sources > /dev/null <<'EOF'
Types: deb
URIs: https://cornball-ai.github.io/janssonr
Suites: noble
Components: main
Trusted: yes
Enabled: yes
EOF

sudo apt update
sudo apt install r-cornball-janssonr

The older one-line form works too:

deb [trusted=yes] https://cornball-ai.github.io/janssonr noble main

Before you do

What gets installed

The compiled R package, into /usr/lib/R/site-library/janssonr, linked against the distribution's libjansson4. It provides from_json() and to_json(): an R-safe profile of RFC 8259 with duplicate-key rejection at any depth, NUL and invalid-UTF-8 rejection, exact double round-trip, and classed error conditions with source coordinates. Sources install from the cornball drat instead.