Create a gist now

Instantly share code, notes, and snippets.

@alfredplpl /json.R
Last active Aug 29, 2015

What would you like to do?
#delete the next # if rjson package is not installed in the system
#install.packages("rjson")
library("rjson")
#load from a json file
data=fromJSON(file="E:/test.json")
#check the data
print(data)
##dump the variable as a file
#write(toJSON(data),file="E:/test.json")
> #check the data
> print(data)
$A
[1] 10
$C
[1] 30 40
$B
[1] 20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment