RJSONIO v1.3-1.1

0

Monthly downloads

0th

Percentile

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.

Functions in RJSONIO

Name Description
Bob Symbolic constants identifying the type of a JSON value.
readJSONStream Read JSON from a Connection/Stream
isValidJSON Test if JSON content is valid
basicJSONHandler Create handler for processing JSON elements from a parser
fromJSON Convert JSON content to R objects
asJSVars Serialize R objects as Javsscript/ActionScript variables
toJSON Convert an R object to a string in Javascript Object Notation
No Results!

Last month downloads

Details

Note See http://www.json.org/JSON_checker/test.zip for tests. We now use code from the libjson project (http://libjson.sourceforge.net).
License BSD_3_clause + file LICENSE
Collate readJSON.R asVars.R isValid.R json.R simpleHandler.R stream.R
Biarch true
NeedsCompilation yes
Packaged 2018-11-14 10:19:03 UTC; ripley
X-CRAN-Original-Maintainer Duncan Temple Lang
X-CRAN-Comment Orphaned and corrected on 2018-11-12, after 4 years of no corrections.
Repository CRAN
Date/Publication 2018-11-14 12:47:36 UTC
imports methods
Contributors Jonathan Wallace

Include our badge in your README

[![Rdoc](http://www.rdocumentation.org/badges/version/RJSONIO)](http://www.rdocumentation.org/packages/RJSONIO)