getJSON,RCyjs-method {RCyjs} | R Documentation

## getJSON

### Description

`getJSON` a JSON string from the browser, describing the graph in cytoscape.js terms

### Usage

    ## S4 method for signature 'RCyjs'
    getJSON(obj)

### Arguments

`obj` | an RCyjs instance

### Value

a JSON string

### Examples

    if(interactive()){
       sampleGraph <- simpleDemoGraph()
       rcy <- RCyjs(title="getJSON", graph=sampleGraph)
       s <- getJSON(rcy)
       s.asList <- fromJSON(s)  # easier to inspect if you wish toa
       }

[Package RCyjs version 2.2.2 Index]