Workaround for rsession breaking with new default json serializer