Fixes #5786: You cannot pass 'include' /  'exclude' targets as json for Rule API
Merge pull request #695 from fanf/bug_5786/you_cannot_pass_include_exclude_targets_as_json_for_rule_api

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