Scheduled maintenance: Thursday, September 24, between 11:30am and 13:30pm UTC. This site will have limited functionality while we undergo maintenance to improve your experience. If an article doesn’t solve your issue and you want to ask a question, we have our support community waiting to help you at @FirefoxSupport on Twitter

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Is There a Terminal Switch to Export/Import JSON FILE?

more options

I need to get and put files from Firefox in an external program, so I need to be able to export/import JSON files programmatically (probably the command line). Is there a switch I can use, or some other way to do this?

Chosen solution

You can't do that via the command line.

There is a daily JSON backup in the bookmarkbackups folder in the Firefox Profile Folder

Maybe you can create a XPCOM component to do what you want. http://developer.mozilla.org/en/XPCOM http://kb.mozillazine.org/Category:XPCOM_example_code

http://forums.mozillazine.org/viewforum.php?f=27 - MozillaZine Mozilla Development forum http://forums.mozillazine.org/viewforum.php?f=19 - MozillaZine Extension Development forum

Read this answer in context 👍 0

All Replies (2)

more options

I'm ashamed to, but...

bump

more options

Chosen Solution

You can't do that via the command line.

There is a daily JSON backup in the bookmarkbackups folder in the Firefox Profile Folder

Maybe you can create a XPCOM component to do what you want. http://developer.mozilla.org/en/XPCOM http://kb.mozillazine.org/Category:XPCOM_example_code

http://forums.mozillazine.org/viewforum.php?f=27 - MozillaZine Mozilla Development forum http://forums.mozillazine.org/viewforum.php?f=19 - MozillaZine Extension Development forum