Modifications and package for exporting data to JSON