Serialize R Objects to JSON, JavaScript Object Notation

This is a package that allows conversion to and from data in Javascript object notation (JSON) format. This allows R objects to be inserted into Javascript/ECMAScript/ActionScript code and allows R programmers to read and convert JSON content to R objects. This is an alternative to rjson package. Originally, that was too slow for converting large R objects to JSON and was not extensible. rjson's performance is now similar to this package, and perhaps slightly faster in some cases. This package uses methods and is readily extensible by defining methods for different classes, vectorized operations, and C code and callbacks to R functions for deserializing JSON objects to R. The two packages intentionally share the same basic interface. This package (RJSONIO) has many additional options to allow customizing the generation and processing of JSON content. This package uses libjson rather than implementing yet another JSON parser. The aim is to support other general projects by building on their work, providing feedback and benefit from their ongoing development.


Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.


1.3-1.4 by CRAN Team, 7 months ago

Browse source code at

Authors: CRAN Team [ctb, cre] (de facto maintainer since 2014) , Duncan Temple Lang [aut] , Jonathan Wallace [aut] (aka ninja9578 , author of included libjson sources)

Documentation:   PDF Manual  

Task views: Web Technologies and Services

BSD_3_clause + file LICENSE license

Imports methods

Imported by CropScapeR, FAOSTAT, GuardianR, LDAvis, OData, RSDA, RXKCD, Rbitcoin, RedditExtractoR, Thinknum, WDI, ajv, autota, cmmr, datamart, haploR, kerastuneR, plusser, rYoutheria, revgeo, rfigshare, smoof, switchr, tm.plugin.webmining, trackr, translate, translateR, treeman, tsmp, wilson.

Depended on by LightningR, R4CouchDB, RNaviCell, audiolyzR, factualR, pxR, rbiouml, rbitcoinchartsapi, restimizeapi, ropensecretsapi, tumblR, weatherr.

Suggested by BIOM.utils, CodeDepends, MGRASTer, exams, fbRanks, leaflet, matR, pxweb.

See at CRAN