restructured data - fixed json file creation