rcx_toJSON {ndexr}R Documentation

Generate JSON data from RCX object

Description

Generate JSON data from RCX object

Usage

rcx_toJSON(rcx, verbose = FALSE, pretty = FALSE)

Arguments

rcx

RCX object

verbose

logical; whether to print out extended feedback

pretty

logical; adds indentation whitespace to JSON output

Value

json jsonlite json object if successfull, NULL otherwise

See Also

rcxgraph_fromRCX rcxgraph_toRCX rcx_fromJSON

Examples

## Create an RCX object
rcx = rcx_new(c('@id'=1, n='Some Name', r='HGNC:Symbol'))
## Convert to JSON
json = rcx_toJSON(rcx)

[Package ndexr version 1.6.0 Index]