Added JSON download capability