* `asJSON` is not exported from `jsonlite` (see https://github.com/jeroen/jsonlite/issues/62), so extending it is a bit of a hack * use class `json` for the json vector. Does this cause any problem as `jsonlite` also uses the class `json`?