fix filename on json

Recursive file scanning included subdir to filename.