Read and write JSON-stat data sets in R.