Use pattern from json file