JSON is not being recorded correctly. Switching to using the jsonlite package's mechanism should correct this.