X
Tap here to go to the mobile version of the site.

Support Forum

Bookmark file is of unknown format..?? :(

Posted

I have firefox 3.6 installed on my system.I uninstalled it and during that i created backup of bookmarks.Didnt realize in wht format it was saving them. After reinstalling firefox 3.6 i restored from the backup file.Two three days later my pc screwed up.I had to redo windows and now after installing 3.6 when i went to restore boookmarks the file of unknown format and it fails to restore.

I have firefox 3.6 installed on my system.I uninstalled it and during that i created backup of bookmarks.Didnt realize in wht format it was saving them. After reinstalling firefox 3.6 i restored from the backup file.Two three days later my pc screwed up.I had to redo windows and now after installing 3.6 when i went to restore boookmarks the file of unknown format and it fails to restore.

Additional System Details

Installed Plug-ins

  • The QuickTime Plugin allows you to view a wide variety of multimedia content in Web pages. For more information, visit the QuickTime Web site.
  • Adobe PDF Plug-In For Firefox and Netscape
  • Default Plug-in
  • Office Plugin for Netscape Navigator
  • iTunes Detector Plug-in
  • DRM Netscape Network Object
  • Npdsplay dll
  • DRM Store Netscape Plugin

Application

  • User Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1) Gecko/20090624 Firefox/3.5

More Information

TonyE
  • Moderator
1044 solutions 8863 answers

Firefox can export/backup bookmarks in 2 different formats. What is the file name of the backup file for your bookmarks. The file name will normally have a .html or .json suffix.

  1. JSON format is normally used to backup the bookmarks. When restoring from a JSON file it will replace the bookmarks with those in the backup.
  2. HTML format is normally used to export the bookmarks, and this format can be read by most browsers. If you import an HTML file, the bookmarks are added to the existing bookmarks.

For details of how to restore from a JSON file or import an HTML file see Backing up and restoring bookmarks - MozillaZine Knowledge Base

Firefox stores bookmarks in a file called places.sqlite, was it this file that you backed up rather than using one of the export/backup options of Firefox?

Firefox can export/backup bookmarks in 2 different formats. What is the file name of the backup file for your bookmarks. The file name will normally have a .html or .json suffix. #JSON format is normally used to backup the bookmarks. When restoring from a JSON file it will replace the bookmarks with those in the backup. # HTML format is normally used to export the bookmarks, and this format can be read by most browsers. If you import an HTML file, the bookmarks are added to the existing bookmarks. For details of how to restore from a JSON file or import an HTML file see [http://kb.mozillazine.org/Backing_up_and_restoring_bookmarks_-_Firefox Backing up and restoring bookmarks - MozillaZine Knowledge Base] Firefox stores bookmarks in a file called places.sqlite, was it this file that you backed up rather than using one of the export/backup options of Firefox?
cor-el
  • Top 10 Contributor
  • Moderator
17422 solutions 157424 answers

Make sure that the file with the bookmarks has the correct file extension: .html for a HTML backup and .json for a JSON backup.

If you are not sure about the file type then you can open the file in Firefox via "File > Open File"

A JSON backup will show as one long text line without line breaks and a HTML backup as a web page with clickable links.

Make sure that the file with the bookmarks has the correct file extension: .html for a HTML backup and .json for a JSON backup. If you are not sure about the file type then you can open the file in Firefox via "File > Open File" A JSON backup will show as one long text line without line breaks and a HTML backup as a web page with clickable links.

Question owner

@ Quarantine Its neither JSON nor HTML file.Its of unknown format. I backedup using backup options of firefox. The problem is that that file doesnt have any extension.

@ Quarantine Its neither JSON nor HTML file.Its of unknown format. I backedup using backup options of firefox. The problem is that that file doesnt have any extension.

Question owner

@ Cor-el I opened up and it shows exactly a JSON backup file shows but then its not a JSON file. Im too confused... Should i post the whole long text line..???

@ Cor-el I opened up and it shows exactly a JSON backup file shows but then its not a JSON file. Im too confused... Should i post the whole long text line..???
cor-el
  • Top 10 Contributor
  • Moderator
17422 solutions 157424 answers

You can only post the first par, 100 or 200 characters is enough to identify the file.

A JSON backup starts with ({"windows":[{"tabs":[{"entries":[{"url":
If your backup starts with that sequence then try to add .json file extension
To make sure that windows doesn't preserve the original file extension you need to add quotes around the name: "bookmarks.json"

You can only post the first par, 100 or 200 characters is enough to identify the file. A JSON backup starts with '''({"windows":[{"tabs":[{"entries":[{"url":''' <br /> If your backup starts with that sequence then try to add .json file extension<br /> To make sure that windows doesn't preserve the original file extension you need to add quotes around the name: '''"bookmarks.json"'''

Question owner

Here's the text

{"title":"","id":1,"dateAdded":1278523297695000,"lastModified":1278706191140000,"type":"text/x-moz-place-container","root":"placesRoot","children":[{"title":"Bookmarks Menu","id":2,"parent":1,"dateAdded":1278523297695000,"lastModified":1281337284484000,"type":"text/x-moz-place-container","root":"bookmarksMenuFolder","children":[{"title":"Recent Tags","id":2006,"parent":2,"annos":[{"name":"Places/SmartBookmark","flags":0,"expires":4,"mimeType":null,"type":3,"value":"RecentTags"}],"type":"text/x-moz-place","uri":"place:sort=14&type=6&maxResults=10&queryType=1"},{"index":1,"title":"Recently Bookmarked","id":2005,"parent":2,"annos":[{"name":"Places/SmartBookmark","flags":0,"expires":4,"mimeType":null,"type":3,"value

Here's the text {"title":"","id":1,"dateAdded":1278523297695000,"lastModified":1278706191140000,"type":"text/x-moz-place-container","root":"placesRoot","children":[{"title":"Bookmarks Menu","id":2,"parent":1,"dateAdded":1278523297695000,"lastModified":1281337284484000,"type":"text/x-moz-place-container","root":"bookmarksMenuFolder","children":[{"title":"Recent Tags","id":2006,"parent":2,"annos":[{"name":"Places/SmartBookmark","flags":0,"expires":4,"mimeType":null,"type":3,"value":"RecentTags"}],"type":"text/x-moz-place","uri":"place:sort=14&type=6&maxResults=10&queryType=1"},{"index":1,"title":"Recently Bookmarked","id":2005,"parent":2,"annos":[{"name":"Places/SmartBookmark","flags":0,"expires":4,"mimeType":null,"type":3,"value
Helper7677 165 solutions 1653 answers

ab90,

That's a .json file. Here are the first few characters of one of my bookmarks-YYYY-MM-DD.json files from {profile folder}/bookmarksbackups:

{"title":"","id":1,"dateAdded":1271681951296000,"lastModified":1271682730031000,"type":"text/x-moz-place-container","root":"placesRoot","children":[{"title":"Bookmarks Menu","id":2,"parent":1,"dateAdded":1271681951312000,"lastModified":1281106340000000,"type":"text/x-moz-place-container","root":"bookmarksMenuFolder","children":[{"title":"

ab90, That's a .json file. Here are the first few characters of one of my bookmarks-YYYY-MM-DD.json files from {profile folder}/bookmarksbackups: {"title":"","id":1,"dateAdded":1271681951296000,"lastModified":1271682730031000,"type":"text/x-moz-place-container","root":"placesRoot","children":[{"title":"Bookmarks Menu","id":2,"parent":1,"dateAdded":1271681951312000,"lastModified":1281106340000000,"type":"text/x-moz-place-container","root":"bookmarksMenuFolder","children":[{"title":"
cor-el
  • Top 10 Contributor
  • Moderator
17422 solutions 157424 answers

Helpful Reply

A JSON file needs to have a .json file extension, otherwise Firefox won't recognize it as such.
You may need to add quotes around the name ("bookmarks.json") to force a new file extension on Windows.

A JSON file needs to have a .json file extension, otherwise Firefox won't recognize it as such.<br /> You may need to add quotes around the name ("bookmarks.json") to force a new file extension on Windows.

Question owner

@ Helper Its not the Json file as cor-el said u need to have the Json extension and it doesnt have that extension.

@ Cor-el How to get that Json extension attached to this file.

@ Helper Its not the Json file as cor-el said u need to have the Json extension and it doesnt have that extension. @ Cor-el How to get that Json extension attached to this file.
cor-el
  • Top 10 Contributor
  • Moderator
17422 solutions 157424 answers

Try to add quotes around the full name including the .json file extension ("bookmarks.json") as I wrote above to force that new name.

If that doesn't work the try to rename in a cmd.exe window (Start > Run) with the rename command
Make sure that you are in the correct folder, if necessary then use cd "path"

rename "old_name" "new_name.json"
Try to add quotes around the full name including the .json file extension ("bookmarks.json") as I wrote above to force that new name. If that doesn't work the try to rename in a cmd.exe window (Start > Run) with the rename command<br /> Make sure that you are in the correct folder, if necessary then use '''cd "path"''' rename "old_name" "new_name.json"
Helper7677 165 solutions 1653 answers

ab90,

My post about the format of the file being a .json file was building on cor-el's post in this thread Posted August 17, 2010 5:11:05 PM PDT

"...then try to add .json file extension. To make sure that windows doesn't preserve the original file extension you need to add quotes around the name: "bookmarks.json"..."

'''ab90''', My post about the format of the file being a .json file was building on cor-el's post in this thread '''''Posted August 17, 2010 5:11:05 PM PDT''''' '''''"...then try to add .json file extension. To make sure that windows doesn't preserve the original file extension you need to add quotes around the name: "bookmarks.json"..."'''''
erb509 0 solutions 1 answers

Thank you for posting this answer. I had the same problem with my backup being an unknown format. It wouldn't allow me to add quotations around it, but I was able to look at the properties (Windows XP) of the bookmark file and type in a new name with the .json extension and that worked like a charm! Thanks!

Thank you for posting this answer. I had the same problem with my backup being an unknown format. It wouldn't allow me to add quotations around it, but I was able to look at the properties (Windows XP) of the bookmark file and type in a new name with the .json extension and that worked like a charm! Thanks!

Question owner

Thnx cor-el and helper it worked.. Now i have a new problem :D ive traced up my previous bookmarks and many have been restored.. Now i need to merge both of these lists... Any solution??

Thnx cor-el and helper it worked.. Now i have a new problem :D ive traced up my previous bookmarks and many have been restored.. Now i need to merge both of these lists... Any solution??
cor-el
  • Top 10 Contributor
  • Moderator
17422 solutions 157424 answers

Restoring a JSON backup will replace all your current bookmarks (you get a warning about that), so if you already have bookmarks that you wish to keep then export them to an HTML file before restoring the JSON backup.

A way to merge bookmarks is to use two profiles and restore a JSON backup in each of them. Use Copy in the Library (Bookmarks Manager) of the second Firefox instance to Copy selected bookmarks to the clipboard and Paste them into the Library of the Firefox instance opened with the default profile. You need to start the second Firefox instance (profile) with the -no-remote command line switch.

Another way is to restore the first JSON backup and copy all the restored bookmarks to the clipboard.
Then you can restore the second JSON backup and paste the bookmarks that were saved on the clipboard to merge the previous set.

Restoring a JSON backup will replace all your current bookmarks (you get a warning about that), so if you already have bookmarks that you wish to keep then export them to an HTML file before restoring the JSON backup. A way to merge bookmarks is to use two profiles and restore a JSON backup in each of them. Use Copy in the Library (Bookmarks Manager) of the second Firefox instance to Copy selected bookmarks to the clipboard and Paste them into the Library of the Firefox instance opened with the default profile. You need to start the second Firefox instance (profile) with the -no-remote command line switch. Another way is to restore the first JSON backup and copy all the restored bookmarks to the clipboard.<br /> Then you can restore the second JSON backup and paste the bookmarks that were saved on the clipboard to merge the previous set.

Question owner

Cor-el ur a genius man... Thnx ..!! =)

Cor-el ur a genius man... Thnx ..!! =)