-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
pretty json function not working correctly on certain sites #272
Comments
If you use However, I don't really get why some sites would have a different behavior here because it really just uses the engines 'JSON.stringify` function which does not have a different behavior on different sites. Can you pinpoint me to some sites where the behavior you see can be replicated so I can investigate? |
sure: trailers is one of these site. my current workaround is the following:
|
Are you doing this in the browser? Or in node through puppeteer? |
chrome browser, through dev console |
it seems like somewhere an extra |
I can't reproduce your issue. If I do the following: var o = {hello: 'world'};
artoo.savePrettyJson(o); I get the expected result. |
results look like this while using on some sites:
artoo.saveJson(list, {filename: "test.json", pretty: true});
"[{\"cartoon\": \"\", \"name\": \"Wonder Woman\"]"
On some sites it works fine and saves it like so:
The text was updated successfully, but these errors were encountered: