Yes, you're absolutely right! Many web browsers do use JSON files for bookmark exports, though it's not universal across all browsers.
Here's what's happening with browser bookmarks and JSON:
Browsers That Use JSON for Bookmarks
Chrome/Chromium-based browsers (including Edge, Brave, Opera):
- These browsers actually store bookmarks internally in a JSON file called
Bookmarks (no extension) in your user profile folder
- When you manually look at this file, you'll see it's pure JSON format
- However, when you use the browser's "Export bookmarks" feature, it typically exports to HTML format instead
Firefox:
- Uses JSON for bookmark backups (files like
bookmarks-2024-12-25.json)
- These automatic backups are stored in your Firefox profile folder
- You can also manually export bookmarks as JSON through Firefox's bookmark manager
Why You Might Have Seen JSON Bookmark Files
-
Bookmark backup files: If you were looking in your browser's profile/data folder, you likely saw the automatic JSON backup files
-
Third-party tools: Many bookmark managers and synchronization tools export to JSON format because it's easier to parse programmatically
-
Developer/power user exports: Some browser extensions or developer tools allow JSON exports of bookmarks
-
Manual file access: If you directly accessed Chrome's bookmark storage, you'd see the JSON structure
What a Bookmark JSON File Looks Like
Here's a simplified example of how bookmarks appear in JSON format:
{
"roots": {
"bookmark_bar": {
"children": [
{
"date_added": "13317849234000000",
"id": "6",
"name": "GitHub",
"type": "url",
"url": "https://github.com/"
},
{
"children": [
{
"date_added": "13317849234000000",
"id": "8",
"name": "Stack Overflow",
"type": "url",
"url": "https://stackoverflow.com/"
}
],
"id": "7",
"name": "Development",
"type": "folder"
}
],
"id": "1",
"name": "Bookmarks bar",
"type": "folder"
}
},
"version": 1
}
So yes, your memory is correct - browsers do use JSON for bookmark storage and sometimes for exports, though the standard user-facing export format is usually HTML for compatibility reasons.