My value is a string:
"['Eitaj', 'Jason Json', 'Eitaj M', "Jason Json's"]"
Trying to parse it with JSON.parse()
results in an error.
Encountered SyntaxError: Unexpected token ' in JSON at position 1
I discovered that the correct working string is:
JSON.parse('["Eitaj", "Jason Json", "Eitaj M", "Jason Json\'s"]')
Are there any alternative tricks I can use besides switching single quotes to double quotes?