Skip to content

jsonlite

2.0.0

A Simple and Robust JSON Parser and Generator for R

1,761packages dependsuggested by 348
18.7Mdownloads / year
65.1%test coverage
6/13flavors OK

Overview

About

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.

Changes in 2.0.0
  • 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

CRAN checks
2ERROR5NOTE6OK
Check messages
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'.

CRAN check page ↗

Slowest check: 2.8 min · r-devel-windows-x86_64
Status changes
  • ERROR6 OK, 5 NOTE, 2 ERRORNow
  • ERROR13 OK, 1 ERROR2026-03-10
Advisories
Earlier advisories (1)Hide earlier advisories (1)
  • RSEC-2023-3Memory leak vulnerability
    0.9.12 to 1.8.7, fixed in 1.8.8, 2023-07-18, CVE-2023-33460 Medium 6.5

Documentation

In release 2.0.0
README· In the repository, left out of the releaseVignettesYes · 5 · dynamicNEWSYes · 100% structured · mentions 2.0.0Citation fileYes · cites a publicationWebsiteYes
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

18.7M
CRAN downloads in the past year
Rank #16 · ~51.1K/day · ~1.6M/mo
Daily download trend is not available in this view yet.
1.5M30 days
4.8M90 days
18.7M1 year
Compare downloads with other packages →
Also on251.6K r2u1.8K autocran1.8M conda_forge915 bioconda23.5K c2d4u

Repository

403Stars
46Forks
110Open issues
12Open PRs
37Releases
1,102Commits
31Commit identities
jsonrrstatsparser
1,102 commits · Last activity 2026-09-28 · 0% stars, 30d · Default branch at 2.0.1, ahead of CRAN 2.0.0 (checked 2026-10-11)
Responsiveness
How these are sampled
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

2025-10-07 · 3912026-07-26 · 403
PracticesBeta

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.

Continuous integration (2)
GitHub ActionsR CMD check workflow

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

Governance and community (1)
Code of conduct
Lint, format, editor (2)
AirRStudio project
Git structural (1)
.gitattributes
How this is detected·Detection ruleset v3 (2026-09-26)
AI coding toolsBeta

This repository shows signs of AI coding tools.

  • Claude Codefirst seen on or before 2026-07-22
    Commits: at least 1 crediting it in the message
  • GitHub Copilotfirst seen 2026-07-22
    Pull request: opened by its own account
Models named in its commits
  • Claude Fable 51 commit · Jul 2026
Counts are commits, not lines of code. Commits by a tool's accounts count once across all of its accounts. Commits crediting it are the largest count among its credit lines, a minimum.How this is detected·Detection ruleset v4 (updated 2026-09-27)

Dependencies

Declared dependencies
7 external dependencies (excludes base and recommended)

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

Depends (1)
methods
Imports (0)
none
LinkingTo (0)
none
Enhances (0)
none

People & History

People (3)
Author, Maintainer since 0.9.0 (2013)
Copyright holder · added in 0.9.15
author of bundled libyajl
Listed in earlier versions (1)
no longer listed · 0.9.4 to 0.9.11
Releases (46)

Pick two releases to compare their code metrics.

Show 44 earlier eventsHide 44 earlier events

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
Appears in task views

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.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for jsonlite version 2.0.0 [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