--- /dev/null
+#! /bin/sh
+
+DEBUG_DIR="`pwd`"
+cd "`dirname \"$0\"`"/../..
+. "`dirname \"$0\"`"/set-path
+cd "$DEBUG_DIR"
+
+rm -f bookmarks_db.json bookmarks_db.pickle bookmarks_db.txt \
+ mozilla.json mozilla.txt json.diff
+ln -s "$HOME"/Desktop/bookmarks-*.json bookmarks_db.json &&
+BKMK_STORAGE=json convert_st.py pickle &&
+mv bookmarks_db.json mozilla.json &&
+convert_st.py json &&
+
+./pprint-json.py mozilla.json >mozilla.txt &&
+./pprint-json.py bookmarks_db.json >bookmarks_db.txt &&
+exec diff bookmarks_db.txt mozilla.txt >json.diff
--- /dev/null
+#! /usr/bin/env python
+
+import sys
+import json
+from pprint import pprint
+
+infile = open(sys.argv[1], 'rb')
+bkmk_s = infile.read()
+infile.close()
+
+# Work around a bug in Mozilla - remove the trailing comma
+bkmk_s = bkmk_s.strip().replace(',]', ']')
+bookmarks_dict = json.loads(bkmk_s)
+del bkmk_s
+
+pprint(bookmarks_dict)