Skip to content

yyjsonr

0.1.22Package record

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

12packages dependsuggested by 6
197.6Kdownloads / year
51.7%test coverage
13/13flavors OK

Overview

About

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.

Changes in 0.1.22
  • C-API: Address non-API call Rf_findVarInFrame()
  • Geojson: Feature level IDs are now parsed correctly.
  • yyjson: Include latest yyjson version 0.12.0
  • yyjson: Expose new yyjson_read_flag options for JSON5 parsing
  • opts: Added parse option for empty_array and empty_object. See opts_read_json()
  • opts: Add null option when serializing. Now defaults to using JSON "null" where previously had defaulted erroneously to an empty json array. See opts_write_json()
  • compat: switch from gzfread() to gzread() for centOS compatability.
  • feature: Add read_geojson_conn() to handle geonjson from an R connection object
  • opts: Added option arr_of_arrs_to_matrix. Logical value to control if conforming JSON []-arrays of nested []-arrays should be converted to matrices.
Show all changes in 0.1.22Hide the rest of the changes in 0.1.22
  • Fix: Added support for raw nested data.frames (which are *not* in list-columns)
  • Fix: ndjson error with zero-length input when parsing to data.frame. Now returns empty data.frame(). This matches the parsing of ndjson to lists, where zero-length input is not an error, and just returns empty lists.
  • Fix: segfault in parse_ndjson_str_as_df_. Now freeing allocated colnames when error occurs
  • Fix: free yyjson doc on error in geojson parse
  • C-API: Removed support for UnboundValues when serializing environments

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 2.8 min · r-devel-windows-x86_64
Status changes
  • OK13 OK2026-08-04
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK13 OK2026-05-11
  • WARNING12 OK, 1 WARNING2026-05-10
  • OK14 OK2026-04-09
Show 3 earlier changesHide 3 earlier changes
  • WARNING9 OK, 4 NOTE, 1 WARNING2026-03-21
  • NOTE13 OK, 1 NOTE2026-03-17
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 0.1.22
README· In the repository, left out of the releaseVignettesYes · 3 · dynamicNEWSYes · 100% structured · mentions 0.1.22Citation fileNoWebsiteYes
Help pages
25
Examples that run
100%24 run in a plain check (2 of them under a condition)
Exported functions with examples
96%
Documented parameters
100%
Return-value docs
92%
Help pages citing references
0%

Downloads

197.6K
CRAN downloads in the past year
Rank #708 · ~542/day · ~16.5K/mo
Daily download trend is not available in this view yet.
30.3K30 days
74K90 days
197.6K1 year
Compare downloads with other packages →
Also on4K r2u3.5K conda_forge

Repository

167Stars
16Forks
3Open issues
2Open PRs
0Releases
133Commits
4Commit identities
133 commits · Last activity 2026-04-05 · 0% stars, 30d
Responsiveness
How these are sampled
PRs merged (all time)
38%
Median days to close, 50 most recently updated closed issues
214
Median days to close, 50 most recently updated closed PRs
119

Stars over time

2025-09-18 · 1602026-07-07 · 167
PracticesBeta

4 development-tooling and community-health practices detected across 3 families in the upstream repository

Checks run against github.com/coolbutuseless/yyjsonr on 2026-10-11.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel

Docs source (1)
README.Rmd
Reproducibility and dev environment (1)
Dev Container
How this is detected·Detection ruleset v3 (2026-09-26)

Dependencies

Declared dependencies
5 external dependencies (excludes base and recommended)

Installing yyjsonr adds no packages beyond those that come with R.

Depends (1)
R >= 4.1.0
Imports (0)
none
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
12direct
40indirect
Imports 12
Suggested by 6
Show all 18 packagesHide all 18 packages
Depends, Imports or LinkingTo, most downloaded first
Suggests, most downloaded first

People & History

People (3)
Author, Maintainer since 0.1.16 (2024), Copyright holder
Author, Copyright holder
Author of bundled yyjson
Contributor · added in 0.1.21
'json_verbatim' handling
Releases (5)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • 0.1.22Latest
    record
    2026-04-05 · current release · diff ↗ ·
    added 1 export
    read_geojson_conn
  • 0.1.21
    record
    2025-06-03 · diff ↗ ·
    added 4 exports
    as_scalar, read_ndjson_raw, write_json_raw, write_ndjson_raw
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • 0.1.20
    record
    2024-04-10 · diff ↗ ·
    added 11 exports
    opts_read_geojson, opts_write_geojson, read_geojson_file, read_geojson_str, read_ndjson_file, read_ndjson_str, write_geojson_file, write_geojson_str, write_ndjson_file, write_ndjson_str, yyjson_version
  • 0.1.18
    record
    2024-01-22 · diff ↗
  • 0.1.16
    record
    2024-01-17
  • R
    R 4.3.0 released · 2023-04-21

Package metadata

First published
2024-01-17
Total releases
5 / 2 yrs
License
MIT + file LICENSE OSI
Copyright
The included 'yyjson' code is Copyright (c) 2020 YaoYuan. See 'COPYRIGHTS' for LICENSE for included code.
Minimum R
≥ 4.1.0
Download size
1.3 MB
Appears in task views

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("yyjsonr")
Cheng, M., Tasan, M., & Yuan, Y. (2026). yyjsonr: Fast 'JSON', 'NDJSON' and 'GeoJSON' Parser and Generator (Version 0.1.22) [Computer software]. https://doi.org/10.32614/CRAN.package.yyjsonr

This package has no citation file, so citation() returns this entry built from DESCRIPTION.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for yyjsonr version 0.1.22 [Data set]. HJJB, LLC. Data release v2026-10-17. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-17, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy