discoveryjs / browser-extension-json-discovery

A browser extension (Chrome, Edge, Firefox) that changes the way you're viewing JSON
305 stars 11 forks source link

Chrome extension does not work with application/json #87

Closed Loskir closed 11 months ago

Loskir commented 11 months ago

Chromium version: 117.0.5938.88

When you open a link that returns text/plain, it works fine. E.g. https://raw.githubusercontent.com/discoveryjs/browser-extension-json-discovery/master/package.json

image

However, if you open a link that returns Content-type: application/json, e.g. https://api.github.com, default chromium json viewer opens instead

image

Probably, since some version Chromium's json viewer started to take priority over JSONDiscovery. Or the problem is in my setup, it might be. I couldn't get any more insight.

lahmatiy commented 11 months ago

Thank you for the report! Confirmed, Chrome has altered how it displays JSON, which interferes with JsonDiscovery's ability to detect JSON content. Fortunately, I encountered this issue myself yesterday and have already pushed a patch to address it. An update will be released soon.

lahmatiy commented 11 months ago

Patched version was uploaded and waiting for a review from the store to be published.

lahmatiy commented 11 months ago

Finally, the new version (1.13.4) has passed the review and is now published. It's functioning as intended in both Chrome and Edge.