Firefox Bookmarks .json file to text?

NomNom

Executive Member
Joined
Oct 23, 2009
Messages
5,018
Reaction score
9
Location
Auckland, New Zealand
Would anyone be so kind as to help me with this.

I have a huge .json file here that is full of bookmarks that were made in Mozilla Firefox.

I need a way or if someone would be so kind as to write up some code of something for me that would just read out the bookmarks in a text file.

Here is a sample of the file:

Code:
{"title":"","id":1,"dateAdded":1297534103937000,"lastModified":1297534117515000,"type":"text/x-moz-place-container","root":"placesRoot","children":[{"title":"Bookmarks Menu","id":2,"parent":1,"dateAdded":1297534103937000,"lastModified":1315234521015000,"type":"text/x-moz-place-container","root":"bookmarksMenuFolder","children":[{"title":"Download BitDefender","id":5543,"parent":2,"dateAdded":1303644115343000,"lastModified":1303644115343000,"type":"text/x-moz-place","uri":"http://www.bitdefender.co.za/Download%20BitDefender.htm"},{"index":1,"title":"From Internet Explorer","id":120,"parent":2,"dateAdded":1222015745000000,"lastModified":1297534127281000,"annos":[{"name":"bookmarkPropertiesDialog/folderLastUsed","flags":0,"expires":4,"mimeType":null,"type":2,"value":1295881029109}],"type":"text/x-moz-place-container","children":[{"title":"2001-2005 Crime Statistics Per Category","id":121,"parent":120,"dateAdded":1222015745000000,"lastModified":1222015745000000,"type":"text/x-moz-place","uri":"http://www.iss.co.za/CJM/stats0905/category.htm"},{"index":1,"title":"AAR--Content","id":122,"parent":120,"dateAdded":1222015745000000,"lastModified":1222015745000000,"type":"text/x-moz-place","uri":"https://www.aar.org/ListContent.asp?ContentType_ID=4&ListCode=PR"},{"index":2,"title":"ADSL User Statistics","id":123,"parent":120,"dateAdded":1222015745000000,"lastModified":1222015745000000,"type":"text/x-moz-place","uri":"http://userstats.adsl.saix.net/"},{"index":3,"title":"Am I Blocked -


I need it to just read out the bookmarks like what the bookmark is called and the link of the bookmark.

So this possible? :confused:
 

It doesn't do what I want, It reads the code and displays what it is but I just need it in text format so I can easily copy it.

I just need it to take out specific information like the bookmark name and link, I don't need the rest of the information.

A format like this:

(name of bookmark) - (link/URL)
Download BitDefender - http://www.bitdefender.co.za/Download BitDefender.htm -


Paste it into jsonlint.com.

When I paste the code into there the site locks up and Firefox crashes.


Looks like I'll have to sift through this file manually, should be done in a month :D
 
Last edited:
Would anyone be so kind as to help me with this.

I have a huge .json file here that is full of bookmarks that were made in Mozilla Firefox.

I need a way or if someone would be so kind as to write up some code of something for me that would just read out the bookmarks in a text file.

Here is a sample of the file:

Code:
{"title":"","id":1,"dateAdded":1297534103937000,"lastModified":1297534117515000,"type":"text/x-moz-place-container","root":"placesRoot","children":[{"title":"Bookmarks Menu","id":2,"parent":1,"dateAdded":1297534103937000,"lastModified":1315234521015000,"type":"text/x-moz-place-container","root":"bookmarksMenuFolder","children":[{"title":"Download BitDefender","id":5543,"parent":2,"dateAdded":1303644115343000,"lastModified":1303644115343000,"type":"text/x-moz-place","uri":"http://www.bitdefender.co.za/Download%20BitDefender.htm"},{"index":1,"title":"From Internet Explorer","id":120,"parent":2,"dateAdded":1222015745000000,"lastModified":1297534127281000,"annos":[{"name":"bookmarkPropertiesDialog/folderLastUsed","flags":0,"expires":4,"mimeType":null,"type":2,"value":1295881029109}],"type":"text/x-moz-place-container","children":[{"title":"2001-2005 Crime Statistics Per Category","id":121,"parent":120,"dateAdded":1222015745000000,"lastModified":1222015745000000,"type":"text/x-moz-place","uri":"http://www.iss.co.za/CJM/stats0905/category.htm"},{"index":1,"title":"AAR--Content","id":122,"parent":120,"dateAdded":1222015745000000,"lastModified":1222015745000000,"type":"text/x-moz-place","uri":"https://www.aar.org/ListContent.asp?ContentType_ID=4&ListCode=PR"},{"index":2,"title":"ADSL User Statistics","id":123,"parent":120,"dateAdded":1222015745000000,"lastModified":1222015745000000,"type":"text/x-moz-place","uri":"http://userstats.adsl.saix.net/"},{"index":3,"title":"Am I Blocked -


I need it to just read out the bookmarks like what the bookmark is called and the link of the bookmark.

So this possible? :confused:

Why don't you import the file into Firefox & export as html? Just backup your current bookmarks first.
 
Fantastic thank you sir, exactly what I wanted. :)

Here's how for anyone who wants to know:

BACKUP CURRENT BOOKMARKS FIRST:

  • Access Firefox 'Library' - 'Bookmarks' -> 'Show All Bookmark'
  • Select 'Import and Backup'
  • Choose 'Backup...'
  • Choose location and select 'Save'

Import .json file:

  • From Firefox 'Library' - Select 'Import and Backup'
  • Choose 'Restore'
  • Select 'Choose File...'
  • Select the .json file you want to import
  • Select 'Yes' to replace current bookmarks

Export html file:

  • From Firefox 'Library' - Select 'Import and Backup'
  • Choose 'Export Bookmarks to html...'
  • Choose location to store 'bookmarks.html' and select 'Save'

Lastly, restore your bookmarks by importing the backup you saved earlier...
 
Top
Sign up to the MyBroadband newsletter
X