JSON and XML import and export now working