Status/Resolution/Reason: Closed/Fixed/Fixed
Reporter/Name(from Bugbase): Bryan Henderson / Bryan Henderson ()
Created: 04/17/2017
Components: Language, Serialization
Versions: 2016,11.0,2018
Failure Type: Data Corruption
Found In Build/Fixed In Build: 11,0,11,301867 / 2018,0,02,312775
Priority/Frequency: Normal / All users will encounter
Locale/System: / Windows 10 64 bit
Vote Count: 0
Problem Description:
SerializeJSON will fail to quote the "character" key value in errors that occur when parsing JSON (DeserializeJSON(string))
Steps to Reproduce:
try {
deserializeJSON('<!DOCTYPE ..'); // HTML string where JSON was expected
} catch (any e) {
bad = serializeJSON(e); // produces invalid JSON
deserializeJSON(bad); // throws error indicating issue
}
Actual Result:
... "character":<, ...
Expected Result:
... "character":"<", ...
Any Workarounds:
none
Attachments:
- May 22, 2017 00:00:00: errorExample.gif
Comments: