Added ability to download data as json