2 件の回答
Hi Slmmy, You can try using .replace to replace single quotes with double quotes while parsing JSONHere is an example:If "captcha_settings" is using single quotes, we replace the single quote with a double quote by adding .replace as followsJSON.parse(document.getElementsByName("captcha_settings")[0].value.replace(/'/g, '"'));Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future.Thank you