搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

Json Viewer

  • 5 回覆
  • 0 有這個問題
  • 9 次檢視
  • 最近回覆由 cor-el

more options

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

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)

more options

Does it work if you paste the JSON code in the Text tab (command + V) and then switch to the Viewer tab?

有幫助嗎?

more options

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?

有幫助嗎?

more options

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 於 修改

有幫助嗎?

more options

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.

有幫助嗎?

more options

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.

有幫助嗎?

問個問題

如果您還沒有帳號,您必須先登入帳號 來回覆文章。還沒有帳號的話,只能發問新問題