Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[JSON Viewer] Add ability to access the JSON object from the Console #174

Open
captainbrosset opened this issue Aug 25, 2023 · 0 comments
Open
Labels
feature New feature or request tracked This issue is now tracked on our internal backlog

Comments

@captainbrosset
Copy link
Contributor

captainbrosset commented Aug 25, 2023

JSON viewer support is a great addition to Edge. One thing I would like to see is to expose the json content as a variable on DevTools console.

As a workaround, I tried the following on the console, which works for smaller outputs (smaller than the visible page):
json = JSON.parse(document.getElementsByClassName("cm-content")[0].innerText)

However, it seems for bigger JSONs (when scrollbar exists), the page is rendered as we scroll it, not allowing to read the entire json and giving the error Unexpected end of JSON input at JSON.parse

Originally posted by @c4ldas in #87 (comment)

AB#46169933

@captainbrosset captainbrosset added feature New feature or request tracked This issue is now tracked on our internal backlog labels Aug 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request tracked This issue is now tracked on our internal backlog
Projects
None yet
Development

No branches or pull requests

1 participant