check for json file to get the correct folder