serialized-editor
serialized-editor copied to clipboard
Strings with backslashes (\) cause errors
I can't see this logged anywhere, but strings with \
raise errors.
I'm seeing this in the data saved by wp_queue
A minimal case would be:
O:14:"Simpsons\Homer":1:{s:14:"favouriteDrink";s:9:"Duff Beer";}
This outputs:
And the console shows:
SyntaxError: JSON.parse: bad escaped character at line 1 column 33 of the JSON data
Changing the \
to -
fixes the issue.