Package: typedjson 0.1.2

Nicolas Bennett

typedjson: Type-Faithful and Human-Readable JSON for R Values

Writing an R value as JSON that a human can read, and reading it back unchanged. The 'jsonlite' package offers either a readable but lossy pair of functions or a faithful but verbose one; this package emits ordinary JSON for ordinary values and annotates only what JSON cannot express, namely the distinction between integer and double, typed missing values, non-finite numbers, attributes, and objects from the S3, S4 and S7 systems.

Authors:Nicolas Bennett [aut, cre, cph], YaoYuan [ctb, cph]

typedjson_0.1.2.tar.gz
typedjson_0.1.2.zip(r-4.7-x86_64)typedjson_0.1.2.zip(r-4.7-arm64)typedjson_0.1.2.zip(r-4.6-x86_64)typedjson_0.1.2.zip(r-4.6-arm64)
typedjson_0.1.2.tar.gz(r-4.7-arm64)typedjson_0.1.2.tar.gz(r-4.7-x86_64)typedjson_0.1.2.tar.gz(r-4.6-arm64)typedjson_0.1.2.tar.gz(r-4.6-x86_64)
typedjson_0.1.2.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
typedjson/json (API)

# Install 'typedjson' in R:
install.packages('typedjson', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/nbenn/typedjson/issues

Pkgdown/docs site:https://nbenn.github.io

Uses libs:
  • c++– GNU Standard C++ Library v3

On CRAN:

Conda:

cpp

5.16 score 8 packages 478 downloads 8 exports 1 dependencies

Last updated from:f4e63eb7c6. Checks:10 OK. Indexed: no.

TargetResultTimeFilesSyslog
linux-devel-arm64OK111
linux-devel-x86_64OK142
source / vignettesOK193
linux-release-arm64OK118
linux-release-x86_64OK131
windows-devel-arm64OK235
windows-devel-x86_64OK206
windows-release-arm64OK236
windows-release-x86_64OK128
wasm-releaseOK94

Exports:json_readjson_read_strjson_revivejson_statejson_writejson_write_strr6_restorer6_state

Dependencies:cpp11

Design notes
What this is, and what it is not | Two contracts | Format | Principles | Atomic values | Plain output | Which attributes survive | What plain mode writes that the default refuses | Values JSON cannot carry | Attributes | Types with no lexeme | Language objects | Object systems | Environments | Closures | References | Self-contained documents | Reading foreign JSON | Reading without code | API | Extension protocol | The gap this fills | Engine | Testing | Prior art | Deferred

Last update: 2026-11-20
Started: 2026-09-18

Persisting a class that owns a handle
Where the default rule stops | A reader that owns a connection | What to record | Getting it back | The document is the interface | When the resource is gone | Methods have no privileges | A class with no default to fall back on

Last update: 2026-11-20
Started: 2026-09-18

Persisting an R6 class
Where the default would have to guess | Deciding what the state is | Writing the pair | When the bindings really are the state | Generators need no method | Writing an instance whole | Reference classes, and where the refusal stops

Last update: 2026-11-20
Started: 2026-09-18

Size and speed against jsonlite
The payload | What comes back | Size | Speed | Reading these numbers

Last update: 2026-09-18
Started: 2026-09-18

Readme and manuals

Help Manual

Help pageTopics
Write and read R values as JSONjson_read json_read_str json_write json_write_str
Persist a class the default rule does not fitjson_revive json_state
Record an 'R6' instance as the bindings it holdsr6_restore r6_state