jsonlite
2.0.0A Simple and Robust JSON Parser and Generator for R
Overview
A reasonably fast JSON parser and generator, optimized for statistical data and the web. Offers simple, flexible tools for working with JSON in R, and is particularly powerful for building pipelines and interacting with a web API. The implementation is based on the mapping described in the vignette (Ooms, 2014). In addition to converting JSON data from/to R objects, 'jsonlite' contains functions to stream, validate, and prettify JSON data. The unit tests included with the package verify that all edge cases are encoded and decoded consistently for use with dynamic data in systems and applications.
- Output for toJSON(x, pretty = p) where p is a number has changed: now uses the same r-based indent system as for pretty = TRUE. To get the old format, run json output through prettify().
- Both toJSON() and prettify() support now can use tabs instead of spaces by setting a negative number as indent/pretty argument.
- Fix an ubsan warning in prettify/minify in libyajl
- Reformatted code with air
From NEWS in the release
Install
Health
ERRORre-building of vignette outputsr-oldrel-macos-arm64, r-release-macos-x86_64
r-oldrel-macos-arm64
Error(s) in re-building vignettes: --- re-building ‘json-aaquickstart.Rmd’ using rmarkdown [WARNING] This document format requires a nonempty <title> element. Defaulting to 'json-aaquickstart.knit' as the title. To specify a title, use 'title' in metadata or --metadata title="...". --- finished re-building ‘json-aaquickstart.Rmd’ --- re-building ‘json-apis.Rmd’ using rmarkdown --- finished re-building ‘json-apis.Rmd’ --- re-building ‘json-paging.Rmd’ using rmarkdown --- finished re-building ‘json-paging.Rmd’ --- re-building ‘json-mapping.pdf.asis’ using asis --- finished re-building ‘json-mapping.pdf.asis’ Error in loadVignetteBuilder(pkgdir) : vignette builder 'R.rsp' not found Calls: <Anonymous> -> loadVignetteBuilder Execution halted SUMMARY: processing the following file failed: ‘json-opencpu.pdf.asis’ Error: Vignette re-building failed. Execution halted
r-release-macos-x86_64
Error(s) in re-building vignettes: Error in loadVignetteBuilder(pkgdir) : vignette builder 'R.rsp' not found Calls: <Anonymous> -> loadVignetteBuilder Execution halted Error in loadVignetteBuilder(pkgdir) : vignette builder 'R.rsp' not found Calls: <Anonymous> -> loadVignetteBuilder Execution halted Error in loadVignetteBuilder(pkgdir) : vignette builder 'R.rsp' not found Calls: <Anonymous> -> loadVignetteBuilder Execution halted Error in loadVignetteBuilder(pkgdir) : vignette builder 'R.rsp' not found Calls: <Anonymous> -> loadVignetteBuilder Execution halted --- re-building ‘json-opencpu.pdf.asis’ using asis --- finished re-building ‘json-opencpu.pdf.asis’ SUMMARY: processing the following files failed: ‘json-aaquickstart.Rmd’ ‘json-apis.Rmd’ ‘json-paging.Rmd’ ‘json-mapping.pdf.asis’ Error: Vignette re-building failed. Execution halted
NOTER code for possible problemsr-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-windows-x86_64
Found calls to structure() using deprecated special names: jsonlite/R/helpfunctions.R (.Names: 1) jsonlite/tests/testthat/test-toJSON-NULL-values.R (.Names: 1) '.Names' should be changed to 'names'.
- ERROR6 OK, 5 NOTE, 2 ERRORNow
- ERROR13 OK, 1 ERROR2026-03-10
Earlier advisories (1)Hide earlier advisories (1)
- RSEC-2023-3Memory leak vulnerability0.9.12 to 1.8.7, fixed in 1.8.8, 2023-07-18, CVE-2023-33460 Medium 6.5
Documentation
- Help pages
- 11
- Examples that run
- 100%11 run in a plain check
- Exported functions with examples
- 100%
- Documented parameters
- 100%
- Return-value docs
- 18%
- Help pages citing references
- 27%
Downloads
Repository
- PRs merged (all time)
- 51%
- Median days to close, 50 most recently updated closed issues
- 1
- Median days to close, 50 most recently updated closed PRs
- 6
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
Commits over time
Commit identities over time
6 development-tooling and community-health practices detected across 4 families in the upstream repository
Checks run against github.com/jeroen/jsonlite on 2026-10-11.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
This repository shows signs of AI coding tools.
- Claude Codefirst seen on or before 2026-07-22Commits: at least 1 crediting it in the message
- GitHub Copilotfirst seen 2026-07-22Pull request: opened by its own account
- Claude Fable 51 commit · Jul 2026
Dependencies
Installing jsonlite adds no packages beyond those that come with R.
Show the 48 most downloaded dependentsHide the 48 most downloaded dependents
and 1,713 more dependents and 348 packages that suggest it on CRAN ↗
Code & Tests
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- 2.0.0Latest
- 1.9.12025-03-03 · diff ↗
- 1.9.02025-02-19 · diff ↗
- 1.8.92024-09-20 · diff ↗
- RR 4.4.0 released · 2024-04-24
- 1.8.82023-12-04 · diff ↗
- 1.8.7◆2023-06-30 · diff ↗
- 1.8.5◆2023-06-05 · diff ↗
- RR 4.3.0 released · 2023-04-21
- 1.8.4◆2022-12-06 · diff ↗
- 1.8.3◆2022-10-21 · diff ↗
- 1.8.2◆2022-10-02 · diff ↗
- 1.8.1◆2022-10-01 · diff ↗ ·
added 6 exports
as_gzjson_b64, as_gzjson_raw, base64url_dec, base64url_enc, parse_gzjson_b64, parse_gzjson_raw - RR 4.2.0 released · 2022-04-22
Show 44 earlier eventsHide 44 earlier events
- 1.8.0◆2022-02-22 · diff ↗
- 1.7.3◆2022-01-17 · diff ↗
- RR 4.1.0 released · 2021-05-18
- 1.7.2◆2020-12-09 · diff ↗
- 1.7.1◆2020-09-07 · diff ↗
- 1.7.0◆2020-06-25 · diff ↗
- RR 4.0.0 released · 2020-04-24
- 1.6.1◆2020-02-02 · diff ↗
- RR 3.6.0 released · 2019-04-26
- 1.6◆
- RR 3.5.0 released · 2018-04-23
- 1.5◆
- RR 3.4.0 released · 2017-04-21
- 1.4◆2017-04-08 · diff ↗
- 1.3◆2017-02-28 · diff ↗
- 1.2◆
- 1.1◆2016-09-14 · diff ↗
- 1.0◆
- 0.9.22◆2016-06-15 · diff ↗
- 0.9.21◆2016-06-04 · diff ↗
- 0.9.20◆2016-05-10 · diff ↗
- RR 3.3.0 released · 2016-05-03
- 0.9.19◆
- 0.9.18◆2015-11-25 · diff ↗
- 0.9.17◆
- RR 3.2.0 released · 2015-04-16
- 0.9.16◆2015-04-11 · diff ↗
- 0.9.15◆2015-03-26 · diff ↗ ·
removed 1 export
toMongoadded 5 exports
View, flatten, rbind.pages, stream_in, stream_out - 0.9.14◆2014-12-01 · diff ↗
- 0.9.13◆2014-10-21 · diff ↗
- 0.9.12◆
- 0.9.112014-09-05 · diff ↗
- 0.9.10
- 0.9.92014-07-22 · diff ↗
- 0.9.82014-06-02 · diff ↗
- 0.9.72014-04-18 · diff ↗
- RR 3.1.0 released · 2014-04-10
- 0.9.62014-04-05 · diff ↗
- 0.9.52014-03-27 · diff ↗ ·
removed 5 exports
View, flatten, rbind.pages, stream_in, stream_outadded 1 export
toMongo - 0.9.4
- 0.9.32014-01-02 · diff ↗
- 0.9.12013-12-12 · diff ↗
- 0.9.02013-12-03
- RR 3.0.0 released · 2013-04-03
Package metadata
- First published
- 2013-12-03
- Total releases
- 46 / 13 yrs
- License
- MIT + file LICENSE OSI · relicensed from Apache License 2.0 in 0.9.14
- Download size
- 1.0 MB
Cite
Cite this package
Run in R for the authors' entry:
citation("jsonlite")The package provides a citation file, so citation() returns the authors' own entry.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
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.