Package: RJSONIO 1.3-1.9

CRAN Team

RJSONIO: 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.

Authors:CRAN Team [ctb, cre], Duncan Temple Lang [aut], Jonathan Wallace [aut]

RJSONIO_1.3-1.9.tar.gz
RJSONIO_1.3-1.9.tar.gz(r-4.5-noble)RJSONIO_1.3-1.9.tar.gz(r-4.4-noble)
RJSONIO_1.3-1.9.tgz(r-4.4-emscripten)RJSONIO_1.3-1.9.tgz(r-4.3-emscripten)
RJSONIO.pdf |RJSONIO.html
RJSONIO/json (API)

# Install 'RJSONIO' in R:
install.packages('RJSONIO', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Uses libs:
  • c++– GNU Standard C++ Library v3

This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.

8.20 score 2 stars 76 packages 1.6k scripts 22k downloads 10 mentions 24 exports 0 dependencies

Last updated 1 years agofrom:379e7f569c. Checks:OK: 2. Indexed: yes.

TargetResultDate
Doc / VignettesOKOct 31 2024
R-4.5-linux-x86_64OKOct 31 2024

Exports:asJSVarsbasicJSONHandleremptyNamedListfromJSONisValidJSONJSON_T_ARRAY_BEGINJSON_T_ARRAY_ENDJSON_T_FALSEJSON_T_FLOATJSON_T_INTEGERJSON_T_KEYJSON_T_MAXJSON_T_NONEJSON_T_NULLJSON_T_OBJECT_BEGINJSON_T_OBJECT_ENDJSON_T_STRINGJSON_T_TRUEreadJSONStreamStrictStrictCharacterStrictLogicalStrictNumerictoJSON

Dependencies:

Readme and manuals

Help Manual

Help pageTopics
Serialize R objects as Javsscript/ActionScript variablesasJSVars
Create handler for processing JSON elements from a parserbasicJSONHandler
Symbolic constants identifying the type of a JSON value.JSON_T_ARRAY_BEGIN JSON_T_ARRAY_END JSON_T_FALSE JSON_T_FLOAT JSON_T_INTEGER JSON_T_KEY JSON_T_MAX JSON_T_NONE JSON_T_NULL JSON_T_OBJECT_BEGIN JSON_T_OBJECT_END JSON_T_STRING JSON_T_TRUE
Convert JSON content to R objectsfromJSON fromJSON,AsIs,ANY-method fromJSON,AsIs,function-method fromJSON,AsIs,JSONParserHandler-method fromJSON,AsIs,NativeSymbolInfo-method fromJSON,AsIs,NULL-method fromJSON,character,ANY-method fromJSON,connection,ANY-method Strict StrictCharacter StrictLogical StrictNumeric
Test if JSON content is validisValidJSON isValidJSON,AsIs-method isValidJSON,character-method isValidJSON,connection-method
Read JSON from a Connection/StreamreadJSONStream
Convert an R object to a string in Javascript Object NotationemptyNamedList toJSON toJSON,ANY-method toJSON,array-method toJSON,AsIs-method toJSON,character-method toJSON,data.frame-method toJSON,environment-method toJSON,factor-method toJSON,function-method toJSON,hexmode-method toJSON,integer,missing-method toJSON,integer-method toJSON,list-method toJSON,logical-method toJSON,matrix-method toJSON,name-method toJSON,NULL-method toJSON,numeric-method