Skip to content

jsonlite

403 2 122 MIT
2.0.0 (3 Mar 2025) Dec 03 2013 1.5 million (month)

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.

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.

Example Use


```r library("jsonlite")

json <- '["Mario", "Peach", null, "Bowser"]'

load json to dataframe/array/matrix (determined automatically)

fromJSON(json) ```

Alternatives / Similar


Other Languages

2,424 1.1.0 (2026-01-22 16:35:24 ago) Feb 09 2022 compare
728 1.8.0 (2026-02-28 00:53:19 ago) Feb 09 2022 compare
209 0.2.25 (2022-07-06 18:55:03 ago) Feb 09 2022 compare
276 v1.3.7 (2026-03-30 06:38:20 ago) Oct 15 2019 compare
mxj
633 per (2023-07-24 15:10:09 ago) Feb 09 2017 compare
Was this page helpful?