Json Viewer
I'm using Firefox 115.15.0 ESR with a MAC M2
When I visit jsonviewer.stack.hu and paste data into the viewer I get the following error:
TypeError: netscape.security.PrivilegeManager is undefined
Please type: "about:config" in your address bar. Then filter by "signed". Change the value of "signed.applets.codebase_principal_support" to true. You should then be able to use this feature.
As config is sensitive area of the settings can you guide through this problem with a fix? Thanks bcoleman@sympatico.ca
所有回覆 (5)
Does it work if you paste the JSON code in the Text tab (command + V) and then switch to the Viewer tab?
Thanks for the speedy reply.
The Command-V gets the data into the text area which wasn't possible previously using the paste command. Thanks. However, the image below shows what happens when the viewer tab is activated. Even though it says the Json is invalid, it really isn't as it has been validated by other viewers.
Thoughts?
The screenshot doesn't seem to show the full code, so I can't check it.
I notice that the code starts with a single quote (') that shouldn't be there, is there another quote at the end?.
How far do you g when you click 'format'? Note that Firefox comes with a built-in JSON viewer as part of the developer tools, so there is no real need to use an external viewer.
You can paste short JSON code in a reply, then I will check it. You can also edit the question and paste the JSON code in the troubleshooting area.
You can find "Edit this question" under the sidebar "Question Tools" menu (you may have to scroll to the top). For a reply, "Edit this post" is in the three-dot menu next to a reply.
由 cor-el 於
Hi Again
Below is the screenshot of the full json code as requested.
Yes, the same quotation mark (') is at the end of the code.
There was no response when the format button was clicked after pasting the code into the text area.
Thanks for the link to the Firefox built-in json viewer. I'll check it out.
What you pasted is the result of a variable declaration enclosed in quotes with a semicolon appended. Like I wrote above, you should leave out the leading and ending code quote.
- [{"id": "0001",.....}]
If you click the Format button the you should see the code formatted with linebreaks and indentations.
You can also save the JSON code in a text file with a .json file extension and open this file in a Firefox tab to check for errors.