I noticed that the -f option did not do anything when outputting JSON.
Therefore I copied the logic to remove the path from the fm->file property from the normal output to the json output.
Maybe another option would be, to factor out a remove_path(char* filename){} function.
I noticed that the -f option did not do anything when outputting JSON. Therefore I copied the logic to remove the path from the fm->file property from the normal output to the json output.
Maybe another option would be, to factor out a remove_path(char* filename){} function.