Skip to content

Instantly share code, notes, and snippets.

@alfredplpl
Last active August 29, 2015 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alfredplpl/9189535 to your computer and use it in GitHub Desktop.
Save alfredplpl/9189535 to your computer and use it in GitHub Desktop.
#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