Fetches and displays either parsed JSON or whole text from file, depending on which radio button is checked.
To temporarily fix the bug my code introduced: whether or not the fetch returned data, it will setIsProcessing(false).
I think processed JSON format should be default. What I want to do is instead of checking if I want JSON: checking if I want the plain text. What do you think?
Fetches and displays either parsed JSON or whole text from file, depending on which radio button is checked. To temporarily fix the bug my code introduced: whether or not the
fetch
returned data, it willsetIsProcessing(false)
.