team and rule json serialization working