Skip to content

Commit 813c732

Browse files
authored
add workaround snippet to readme
1 parent b085861 commit 813c732

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,13 @@ Chrome extension that auto-formats JSON when you view it in a browser tab.
1212
- Negligible performance impact on non-JSON pages (less than 1 millisecond)
1313
- Works on any valid JSON page – URL doesn't matter
1414
- Buttons for toggling between raw and parsed JSON
15-
- ~~Parsed JSON is exported as a global variable, `json`, so you can inspect it in the console~~ _Disabled for now, due to difficulties getting it working with Manifest v3 upgrade._
15+
- ~~Parsed JSON is exported as a global variable, `json`, so you can inspect it in the console~~*
16+
17+
> *Typing `json` the in console is not working since Manifest v3. If you need a workaround, paste this snippet into the console:
18+
>
19+
> ```js
20+
> json = JSON.parse(document.getElementById("jsonFormatterRaw").querySelector("pre").innerText)
21+
> ```
1622
1723
**Some JSON documents for testing it on:**
1824
https://callumlocke.github.io/json-formatter/

0 commit comments

Comments
 (0)