Comments (20)
Maybe this commit?
8b2b327#diff-11db236acd6b02b1229e7d325e9bf8edb521032e6388f68b6a884ec24bbe291fR36
from jsonview.
i still get the same problem with 2.6.1 in Firefox 121.0.1
The Fix Encoding Button fixes it temporarly
from jsonview.
That's pretty exciting - I don't think anything changed with how that works.
from jsonview.
Thanks, that's likely it. I've submitted 2.4.1 with the fix.
from jsonview.
I dont see v2.4.1 in github or in the FF store, only on chrome store.
There is a revision window before being published?
from jsonview.
Yes they have to review it. No idea how long that will take, Firefox has about a week's lag these days.
from jsonview.
I have 2.4.1 and the issue is still present: screenshot
And it's not only the arrows but basically any UTF-8 text, like Japanese here: screenshot
from jsonview.
Problem solved for me with 2.4.1. TY!
Problem not solved for me
from jsonview.
It's not still working for me. I already have that:
from jsonview.
@balagez, are you able to see https://jsonview.com/example.json fine?
from jsonview.
@stanio Yes that works. Here's an example that doesn't: https://kinja.com/api/core/post/1849599382
Edit: Not sure if it matters but https://jsonview.com/example.json returns this header:
content-type: application/json; charset=utf-8
while my example has
content-type: application/json
According to the JSON RFC the default encoding for JSON content is UTF-8 so the explicit charset shouldn't be necessary for the application/json
MIME type.
from jsonview.
The rfc8259 defines that:
Note: No "charset" parameter is defined for this registration.
Adding one really has no effect on compliant recipients.
I thing the plugin must assume utf-8 if no content-type/charset is received.
from jsonview.
Here's an example that doesn't: https://kinja.com/api/core/post/1849599382
FWIW, on that "page" I'm seeing the "Repair Text Encoding" item active:
After activating it the content is seen fine:
Not sure what's going on. Saving the file locally with a .json
extension and opening that in Firefox, displays it fine this time around.
from jsonview.
For later reference it appears that this only happens on Firefox?
from jsonview.
For me yes, it appears only in Firefox. The same looks fine in MS Edge, for example.
FWIW, with ASCII-only JSON I'm not getting a "Repair Text Encoding" option and the collapsers remain mangled.
from jsonview.
MS Edge hasn't updated because they no longer accept this extension.
from jsonview.
In both of my Firefox and Edge extensions, I'm seeing JSONView Version 2.4.1. Could be I've installed it from the Chrome Web Store, don't really remember.
from jsonview.
What's happening with the document in https://kinja.com/api/core/post/1849599382 is that it does not specify an encoding, but Firefox is guessing that the encoding is windows-1252
. JSONView always parses and transforms to UTF-8, because the JSON spec requires that all valid JSON documents are UTF-8.
JSONView 2.4.2 is going out (in the review queues) which will fix this, but I'd recommend always specifying an encoding.
from jsonview.
Now it's working as expected. Whether or not the server should send the encoding is almost a decade old debate, and and both Chromium and Firefox seem to have been non-compliant at some point in the past:
An opinionated framework, such as Play in my case, may not give us the option to change the Content-Type header.
Up until recently Firefox handled it well so I assume it's a recent regression in Firefox. Anyways, thank you for fixing it.
from jsonview.
@bhollis I'm still getting the same issue with 2.6.1 in Firefox 124.0.2. However I do NOT have the "Repair Text Encoding" option available. It's grayed out, so I can't use that as a temporary fix. Screenshot from REST Countries API below.
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
- Error handling response: TypeError: Cannot read properties of undefined (reading 'textContent') HOT 4
- 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.