lesson pattern detect from lesson json files