Add exportAsJson feature.