fix: make export to JSON work again