Simplify JSON data structure
Refactor file_data to use either list or dict in JSON data