Open IzzleNizzle opened 1 year ago
This PR add's a button to the option bar that adds the value of the JSON to the global variable window.json as per the docs approach:
window.json
json = JSON.parse(document.getElementById("jsonFormatterRaw").querySelector("pre").innerText)
Attempted resolve of #231
Related unresolved PR: https://github.com/callumlocke/json-formatter/pull/242
Inspiration https://github.com/callumlocke/json-formatter/issues/231#issuecomment-1521730777
I have just tried and it worked nice, thanks! Hope that is available in the official version!
👍 to pulling this into a new release
This PR add's a button to the option bar that adds the value of the JSON to the global variable
window.json
as per the docs approach:json = JSON.parse(document.getElementById("jsonFormatterRaw").querySelector("pre").innerText)
Attempted resolve of #231
Related unresolved PR: https://github.com/callumlocke/json-formatter/pull/242
Inspiration https://github.com/callumlocke/json-formatter/issues/231#issuecomment-1521730777