(Sorry for the title)
What is the best way to turn this:
[ { directory: \'video_0\', files: [ \'comp_0.mp4\', \'comp_1.mp4\' ], u