Create a JSON file from the media directory and load content
more lazy