bhollis/jsonview

Display problem with expand arrows and collapsed sections

Closed this issue · 5 comments

I just installed the new JSONview 2.0.0 (on FF 58.0.1) and I'm seeing strange display on this webservice (see attached screenshot) - maybe some kind of UTF8 encoding issue ?

screenshot-20180516-1608

Note, problem does not occur with the sample json at https://jsonview.com/example.json

JSONView 2.0.1 has been released that fixes this. Thank you for the report!

Thanks for the prompt response. I confirm that 2.0.1 does fix the problem.

This seems to be back (for me), on Chrome 78.0.something and version 2.1.0 of the extension.

Do you recall if it had anything to do with the remote server, maybe, not sending the right encoding, or something do do with locale (language) settings?

We have an internal API on a server that transmits Content-Type: application/json; charset=ISO-8859-1, where I see this problem. But the arrows look fine, on, say, the GitHub Jobs API, which sends application/json; charset=utf-8. I guess that little arrow character is in the Unicode range, and in a different encoding, I just get mojibake?

Edit: Seems to be the case that UTF-8 encoding is required in order for the arrows to display correctly. If I change the displayed encoding for a server that sends charset=ISO-8859-1 by default, using the ViewText Encoding menu in Firefox, they look fine.

Is this a thing that can be fixed in the extension, or?

The JSON spec mandates that it is UTF-8 encoded. If it's not UTF-8, it's not JSON.

Oh, well that solves it. Thanks for upgrading my knowledge.