callumlocke / json-formatter

Makes JSON easy to read.
https://chrome.google.com/webstore/detail/json-formatter/bcjindcccaagfpapjjmafapmmgkkhgoa?hl=en
BSD 3-Clause "New" or "Revised" License
3.76k stars 859 forks source link

Seems broken since today - doesnt format anymore #270

Closed vincentwinkel closed 5 months ago

vincentwinkel commented 5 months ago

Hello, First of all, I love this extension. It was working perfectly until yesterday and now this is what I get (when parsed) with v0.7.2

Screenshot 2024-03-28 at 10 24 43

instead of this with v0.2.3

Screenshot 2024-03-28 at 10 24 59
JustinGT commented 5 months ago

An example of a non-formatted url: https://qrng.anu.edu.au/API/jsonI.php?length=1&type=uint8

I'm not sure when the problem started, but I can say for sure that I noticed it when I updated Chrome to "Version 123.0.6312.86 (Official Build) (64-bit)" today.

Addendum:

As some noticed on the Chrome store, it seems to be the "pretty-print" option that's causing the problem. As of yet I've not seen a setting or flag to disable it.

josecabral-afs commented 5 months ago

I'm also seeing this If I disable the JSON Formatter extension (I don't have another formatter extension) I now see this Pretty-print option:

image

So probably this is the reason for it to be broken?

Grouloo commented 5 months ago

The problem seems tied to a wrong parsing of an object when applying styles, or something like that. If you paste the content of style.css or styleDark.css in the