Comments (4)
This would be the line: https://github.com/bhollis/jsonview/blob/master/src/content.ts#L28
However it works for me on Chrome and Edge. So I suspect you have another extension that's changing the content and making this fail.
from jsonview.
For reference, with no extensions enabled at all, this is what JSON looks like:
![image](https://private-user-images.githubusercontent.com/313208/262762509-688e9aa5-4291-473b-a944-32387a088194.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTM2Mzc1NzIsIm5iZiI6MTcxMzYzNzI3MiwicGF0aCI6Ii8zMTMyMDgvMjYyNzYyNTA5LTY4OGU5YWE1LTQyOTEtNDczYi1hOTQ0LTMyMzg3YTA4ODE5NC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNDIwJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDQyMFQxODIxMTJaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT02NmYyMGNiYjcxYTcwOTJmMjEzY2U2MThlMzcxY2VkYWQzNTYxZGE4MGUyOWIwZDY4YzFiYjZlMjc3OTU4YjcxJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.QU3FpIr_AcZTkDC1wgBqtHcMeMiaWFF_ucgpdXo9-FQ)
So the fact that you have line numbers and such suggests you have another extension operating on the content that is incompatible with JSONView.
from jsonview.
This would be the line: https://github.com/bhollis/jsonview/blob/master/src/content.ts#L28
However it works for me on Chrome and Edge. So I suspect you have another extension that's changing the content and making this fail.
I tried disabling all browser extensions, as well as the grease monkey script, leaving only the jsonview, and still no way to display the json properly.At the time I had this problem, it was my edge browser upgraded to the latest version, not ruling out browser compatibility issues? @bhollis
from jsonview.
The new version of edge comes with JSON formatting and disables other JSON extensions. You need to find JSON Viewer in edge://flags/, set it to disable
from jsonview.
Related Issues (20)
- Addon should be active depending on content type of final request to page HOT 2
- Add toggle/option to have a dark background (dark theme) HOT 2
- not working for iframes HOT 1
- Firefox Save Page As... saves rendered HTML instead of original JSON HOT 2
- add font size to options menu HOT 9
- Add a configuration to avoid word-wrap
- Add support for Content-Type: application/vnd.spring-boot.actuator.v3+json HOT 1
- With kerberos auth json view doesn't render json HOT 1
- Copy json loses indention HOT 6
- The extension doesn't work HOT 2
- AWS Console usage triggers JsonView trying to parse an HTML page in error HOT 1
- Migrate to Manifest V3
- Wrong character instead of triangle pointing down HOT 20
- version 2.5.0 - jsonview not displaying HOT 6
- Extension causes JSON parse error when loading SharePoint page HOT 18
- AMO page's description outdated HOT 3
- Support .jsonc files? HOT 3
- Unexpected non-whitespace character after JSON at position 256 (line 1 column 257) HOT 4
- inserts double quotes HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jsonview.