bug 1085588: allow rules to be retrieved in JSON. r=rail