Package: typedjson 0.1.2

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.zip(r-4.5-x86_64)
typedjson_0.1.2.tgz(r-4.6-x86_64)typedjson_0.1.2.tgz(r-4.6-arm64)typedjson_0.1.2.tgz(r-4.5-x86_64)typedjson_0.1.2.tgz(r-4.5-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://nbenn.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

6.86 score 3 stars 8 packages 364 downloads 8 exports 1 dependencies

Last updated from:371144d117. Checks:15 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64OK105
linux-devel-x86_64OK122
source / vignettesOK196
linux-release-arm64OK141
linux-release-x86_64OK117
macos-release-arm64OK176
macos-release-x86_64OK300
macos-oldrel-arm64OK110
macos-oldrel-x86_64OK285
windows-devel-arm64OK242
windows-devel-x86_64OK155
windows-release-arm64OK240
windows-release-x86_64OK123
windows-oldrel-x86_64OK117
wasm-releaseOK93

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 | API | Extension protocol | The gap this fills | Engine | Testing | Prior art | Deferred

Last update: 2026-09-30
Started: 2026-08-30

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-09-30
Started: 2026-08-30

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-09-30
Started: 2026-08-31

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

Last update: 2026-08-30
Started: 2026-08-30

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