[#905] Validate filters and parse them to json, even if they are strings, fixes #917