rename package 'json' to 'rule'