I am trying to account for if a single quote makes it into a field name, or a value of a picklist/multi-picklist, but can't seem to figure out a way to handle it.
I have tried to use escapeSingleQuotes, but my JSON string on my client side has \ where the single quotes used to be instead of \'. I don't know how the single quote disappeared... If this would work as expected, I believe my issue would be resolved, but just having \ instead of \' breaks the JSON.parse as well.
The single quote would need to just be escaped, since if it is a value of a picklist/multi-picklist, it cannot be replaced with something else or it can't be selected and saved because that value won't exist in the picklist/multi-picklist.