Skip to content

jsonlite

377 2 117 MIT
1.8.9 (4 Dec 2023) Dec 03 2013 1.4 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


library("jsonlite")

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

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

Alternatives / Similar


Other Languages

2,179 1.0.1 (2 years ago) Feb 09 2022 compare
600 1.7.0 (16 days ago) Feb 09 2022 compare
209 0.2.25 (2 years ago) Feb 09 2022 compare
259 v1.3.6 (20 days ago) Oct 15 2019 compare
mxj
622 per (1 year, 3 months ago) Feb 09 2017 compare
Was this page helpful?