Previous version of JSON-STAT library for R that is compatible with ONS-API, copied from https://github.com/ajschumacher/rjstat