toJSON broken: [JENKINS-11618] reintroduced a bug fixed by prototypejs 1.7

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      the script:
      JSON.stringify(

      {"a":[1,2]}

      )

      delivers the wrong result:

      • should: " {"a":[1,2]}

        "

      • actual: " {"a":"[1, 2]"}

        "

      hint:
      This was probably introduced by fix for JENKINS-11618

      The problem is that this behaviour breaks e.g. test automation support for SilkTest and WebDriver, and probably some other things too.

            Assignee:
            Unassigned
            Reporter:
            Matthias Steinkogler
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Archived: