add json rules to the CommandMsg structure