fromJSON

0th

Percentile

Convert JSON To R

Convert a JSON object into an R object.

Keywords
interface
Usage
fromJSON( json_str )
Arguments
json_str
a JSON object to convert
Value

  • R object that corresponds to the JSON object

See Also

toJSON

Aliases
  • fromJSON
Examples
#watch out for R turning null into FALSE
fromJSON( "[true, false, null]" )
##[1]  TRUE FALSE __FALSE__

#but if you use a hash, this will be avoided
fromJSON( '{"a":true, "b":false, "c":null}' )
Documentation reproduced from package rjson, version 0.1.0, License: GPL version 2

Community examples

Looks like there are no examples yet.