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

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

Open
tasselx opened this issue Mar 28, 2024 · 3 comments

Comments

@tasselx
Copy link

tasselx commented Mar 28, 2024

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

@bhollis
Copy link
Owner

bhollis commented Apr 3, 2024

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?

@stanio
Copy link
Contributor

stanio commented Apr 3, 2024

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.

@bhollis
Copy link
Owner

bhollis commented Apr 4, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants