Modified "getJsonFromFile" to support files in subdirectories