parse the json to get an idividual step in the pattern