https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON

(supported in most browsers I think, it's just available in the global scope)

On Fri, Oct 30, 2020 at 11:06 AM Strainu <strainu10@gmail.com> wrote:
Hi,

I'm looking at solving the following console warning on ro.wp:
"JQMIGRATE: jQuery.parseJSON is deprecated; use JSON.parse" which
appears due to outdated Twinkle code. Just making the replacement does
not work, since JSON is not defined. As a matter of fact, I cannot
find it anywhere else in the code loading on a normal Romanian
Wikipedia page.

Alas, the generic name of that object makes searching on mw.org or
Google rather useless. I can see some similar changes in Phabricator,
but they seem to work.

So, what is JSON and how can I use it in my code?

Thanks,
   Strainu

P.S. Please don't suggest updating Twinkle...

_______________________________________________
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l