Learn R Programming

⚠️There's a newer version (2.0.0) of this package.Take me there.

RJSONIO (version 0.5-0)

Serialize R objects to JSON, JavaScript Object Notation

Description

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. That version is too slow for converting large R objects to JSON and is not extensible, but a very useful prototype. It is fast for parsing. This package uses methods, vectorized operations and C code and callbacks to R functions for deserializing JSON objects to R. Verison 0.4 of this package uses a new native parser, implements the transformation code in C and allocates memory efficiently (rather than concatenating because of event driven parsing). The result is a significantly faster parsing of large JSON documents.

Copy Link

Version

Install

install.packages('RJSONIO')

Monthly Downloads

26,088

Version

0.5-0

License

BSD

Maintainer

Duncan Lang

Last Published

February 22nd, 2011

Functions in RJSONIO (0.5-0)

basicJSONHandler

Create handler for processing JSON elements from a parser
asJSVars

Serialize R objects as Javsscript/ActionScript variables
toJSON

Convert an R object to a string in Javascript Object Notation
fromJSON

Convert JSON content to R objects
Bob

Symbolic constants identifying the type of a JSON value.