I try to use JSON.parse(), but I have error
Uncaught SyntaxError: Unexpected token '
working
JSON.parse('{"inputType":"select", "rules" :[{"rule": "literal_values", "restriction": "US"}]}')
but not working

why the second version not working?
typeof(validRules) is string