Change json file structure