I'm currently utilizing the JSON3 library, but I'm facing an issue where JSON.stringify is returning different results on a particular website. Unfortunately, the website requires login access, but I have included images for reference.
If someone has access to the 'concursolutions.com' portal, here is the homepage.
Some similarities between both scenarios include:
- Both functions are using the 'native function' (as shown in the image)
- Both pages are utilizing the HTML5 doctype (ie. <!DOCTYPE html>)
- Both have been tested on Chrome 59
Any suggestions on what else I should investigate? I'm running out of ideas.
The code snippet used:
JSON.stringify({'a':[1, 2]}, undefined, 1)
The unexpected behavior is shown in this image: https://i.sstatic.net/aoNB8.png
The expected behavior can be seen in this image: