Den här webbplatsen har begränsad funktionalitet medan vi utför underhåll för att förbättra din upplevelse. Om en artikel inte löser ditt problem och du vill ställa en fråga har vi vår gemenskap som väntar på att hjälpa dig på @FirefoxSupport på Twitter, /r/firefox på Reddit.

Sök i support

Akta dig för supportbedrägerier: Vi kommer aldrig att be dig att ringa eller skicka ett sms till ett telefonnummer eller dela personlig information. Rapportera misstänkt aktivitet med alternativet "Rapportera missbruk".

Läs mer

Extract JSON from IndexedDB files

  • 2 svar
  • 1 har detta problem
  • 16 visningar
  • Senaste svar av cool_man2k3

more options

Hello! I'm using Tab Session Manager to save opened tabs. It uses IndexedDB to store tab data as a JSON. Small JSONs are stored directly in SQLite DB, bigger ones - as a files with integer numbers as names. It's IndexedDB functionality, it's transparent for addons. As far as I understand after the last update to v74 something went wrong with this addon DB. Addon showed "IndexedDB Error". I saved DB files, reinstalled the addon and it works fine again. So now I want to restore my old sessions. SQLite file opens normally using DB Browser, for ex. Separate JSON files seems to be OK also. The problem is that both separate JSON files and JSON data in SQLite DB are not plain text JSON, but kind of binary data containing JSON. How could I extract if from there?

Hello! I'm using Tab Session Manager to save opened tabs. It uses IndexedDB to store tab data as a JSON. Small JSONs are stored directly in SQLite DB, bigger ones - as a files with integer numbers as names. It's IndexedDB functionality, it's transparent for addons. As far as I understand after the last update to v74 something went wrong with this addon DB. Addon showed "IndexedDB Error". I saved DB files, reinstalled the addon and it works fine again. So now I want to restore my old sessions. SQLite file opens normally using DB Browser, for ex. Separate JSON files seems to be OK also. The problem is that both separate JSON files and JSON data in SQLite DB are not plain text JSON, but kind of binary data containing JSON. How could I extract if from there?
Bifogade skärmdumpar

Alla svar (2)

more options

Do you mean that you see BLOB data (hex code) ?

If you use a SQLite browser/viewer to inspect the file and export this data to a file, doesn't that give you the actual data?

more options

cor-el said

Do you mean that you see BLOB data (hex code)? If you use a SQLite browser/viewer to inspect the file and export this data to a file, doesn't that give you the actual data?

I attached a screenshot. Same data in BLOBs in DB and in DB files. Small JSONs stored right in DB as BLOBs, large ones as separate files. Both have same non-plain text format. Seems like IndexedDB stores these JSONs in it's own binary format, that's why it's not plain-text. I'm asking about a way to extract plain text JSON from this binary (hex) BLOBs and files.

There are DB BLOB contents. Same format as a file that I showed above.

Ändrad av cool_man2k3