Fixes #5786: You cannot pass 'include' /  'exclude' targets as json for Rule API