@mathias Is there any way to prevent JSON.parse from converting unicode escape sequences in any string property it encounters? The reviver function provides the value already converted.
Not right now, but @gibson042’s proposal at https://github.com/gibson042/ecma262-proposal-JSON-parse-with-source … would enable such a use case.
-
-
Thanks! Ended up being a moot point in my case (didn’t actually need to retain unconverted unicodes), but thanks for the response and pointing me to that
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.