Package: yyjsonr 0.1.22

yyjsonr: Fast 'JSON', 'NDJSON' and 'GeoJSON' Parser and Generator

A fast 'JSON' parser, generator and validator which converts 'JSON', 'NDJSON' (Newline Delimited 'JSON') and 'GeoJSON' (Geographic 'JSON') data to/from R objects. The standard R data types are supported (e.g. logical, numeric, integer) with configurable handling of NULL and NA values. Data frames, atomic vectors and lists are all supported as data containers translated to/from 'JSON'. 'GeoJSON' data is read in as 'simple features' objects. This implementation wraps the 'yyjson' 'C' library which is available from <https://github.com/ibireme/yyjson>.

Authors:Mike Cheng [aut, cre, cph], Yao Yuan [aut, cph], Murat Tasan [ctb]

yyjsonr_0.1.22.tar.gz
yyjsonr_0.1.22.zip(r-4.7)yyjsonr_0.1.22.zip(r-4.6)yyjsonr_0.1.22.zip(r-4.5)
yyjsonr_0.1.22.tgz(r-4.6-x86_64)yyjsonr_0.1.22.tgz(r-4.6-arm64)yyjsonr_0.1.22.tgz(r-4.5-x86_64)yyjsonr_0.1.22.tgz(r-4.5-arm64)
yyjsonr_0.1.22.tar.gz(r-4.7-arm64)yyjsonr_0.1.22.tar.gz(r-4.7-x86_64)yyjsonr_0.1.22.tar.gz(r-4.6-arm64)yyjsonr_0.1.22.tar.gz(r-4.6-x86_64)
yyjsonr_0.1.22.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
yyjsonr/json (API)
NEWS

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

Bug tracker:https://github.com/coolbutuseless/yyjsonr/issues

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

Uses libs:
  • zlib– Compression library

On CRAN:

Conda:

zlib

12.18 score 165 stars 79 packages 47 scripts 31k downloads 28 exports 0 dependencies

Last updated from:be3a2f62dc. Checks:13 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64OK143
linux-devel-x86_64OK135
source / vignettesOK182
linux-release-arm64OK129
linux-release-x86_64OK122
macos-release-arm64OK96
macos-release-x86_64OK195
macos-oldrel-arm64OK97
macos-oldrel-x86_64OK208
windows-develOK153
windows-releaseOK97
windows-oldrelOK140
wasm-releaseOK102

Exports:as_scalaropts_read_geojsonopts_read_jsonopts_write_geojsonopts_write_jsonread_geojson_connread_geojson_fileread_geojson_strread_json_connread_json_fileread_json_rawread_json_strread_ndjson_fileread_ndjson_rawread_ndjson_strvalidate_json_filevalidate_json_strwrite_geojson_filewrite_geojson_strwrite_json_filewrite_json_rawwrite_json_strwrite_ndjson_filewrite_ndjson_rawwrite_ndjson_stryyjson_read_flagyyjson_versionyyjson_write_flag

Dependencies:

Comparison to jsonlite parsing

Rendered fromjsonlite-comparison.Rmdusingknitr::rmarkdownon Jun 04 2026.

Last update: 2024-01-13
Started: 2024-01-13

Configuration Options for Parsing from JSON

Rendered fromfrom_json_options.Rmdusingknitr::rmarkdownon Jun 04 2026.

Last update: 2025-06-02
Started: 2023-08-16

Configuration Options for Serializing to JSON

Rendered fromto_json_options.Rmdusingknitr::rmarkdownon Jun 04 2026.

Last update: 2025-06-02
Started: 2023-08-16

Readme and manuals

Help Manual

Help pageTopics
Tag an atomic vector with a single element as class 'scalar'. When output to JSON it will be output as a scalar not a vectoras_scalar
Options for reading in GeoJSONopts_read_geojson
Create named list of options for parsing R from JSONopts_read_json
Options for writing from 'sf' object to 'GeoJSON'opts_write_geojson
Create named list of options for serializing R to JSONopts_write_json
Parse geoJSON from an R connection object.read_geojson_conn
Load GeoJSON as 'sf' objectread_geojson_file read_geojson_str
Parse JSON from an R connection object.read_json_conn
Convert JSON to Rread_json_file
Convert JSON in a raw vector to Rread_json_raw
Convert JSON in a character string to Rread_json_str
Parse an NDJSON file to a data.frame or listread_ndjson_file
Parse an NDJSON within a raw vector to a data.frame or listread_ndjson_raw
Parse an NDJSON string to a data.frame or listread_ndjson_str
Validate JSON in file or stringvalidate_json_file validate_json_str
Write SF to GeoJSON stringwrite_geojson_file write_geojson_str
Convert R object to JSON filewrite_json_file
Convert R object to a raw vector of JSON datawrite_json_raw
Convert R object to JSON stringwrite_json_str
Write list or data.frame object to NDJSON in a filewrite_ndjson_file
Write list or data.frame object to NDJSON in a raw vectorwrite_ndjson_raw
Write list or data.frame object to NDJSON in a stringwrite_ndjson_str
Advanced: Values for setting internal options directly on YYJSON libraryyyjson_read_flag
Version number of 'yyjson' C libraryyyjson_version
Advanced: Values for setting internal options directly on YYJSON libraryyyjson_write_flag