jsonview icon indicating copy to clipboard operation
jsonview copied to clipboard

Unexpected non-whitespace character after JSON at position 256 (line 1 column 257)

Open tasselx opened this issue 1 year ago • 3 comments

Describe the bug When I open this example json file, this error message pops up https://jsonview.com/example.json.

What browser are you using?* Its version is 2.6.1, and it uses Microsoft's Edge browser for Mac, with the version number 123.0.2420.65.

Where did you install JSONView from? Installed JSONView from the Microsoft Edge browser's extension marketplace.

3170125211

tasselx avatar Mar 28 '24 09:03 tasselx

There does seem to be some problem with the Chinese version of Edge. Unfortunately I can't easily reproduce on my own versions of Edge or Chrome. Any ideas what would be different?

bhollis avatar Apr 03 '24 05:04 bhollis

I'm seeing it with the English version (123.0.2420.65) of Edge on Windows 10:

screenshot

JSONView 2.6.1 installed from the Chrome Web Store. It opens fine using JSONView 2.6.1 on Firefox.

stanio avatar Apr 03 '24 06:04 stanio

Interesting! This would be a good puzzle for someone who has the free time (i.e. not me) to figure out and fix. A good starting point for the investigation would be that:

  1. This appears to be specific to Edge.
  2. The phrase "Code folding" does not come from anywhere in JSONView's code.
  3. JSONView in Chrome-based browsers uses the contents of the browser's default HTML-ization of the JSON text, which up until now consisted of just the JSON text in a <pre> tag.

bhollis avatar Apr 04 '24 04:04 bhollis

This should be fixed whenever 3.0.0 gets approved.

bhollis avatar Jun 16 '24 05:06 bhollis