Serialize to and from R and JSON, JavaScript Object Notation