add pattern.json