Cerca nel supporto

Attenzione alle mail truffa. Mozilla non chiederà mai di chiamare o mandare messaggi a un numero di telefono o di inviare dati personali. Segnalare qualsiasi attività sospetta utilizzando l'opzione “Segnala abuso”.

Learn More

Questa discussione è archiviata. Inserire una nuova richiesta se occorre aiuto.

How do you uncorrupt a .json file?

  • 9 risposte
  • 1 ha questo problema
  • 19 visualizzazioni
  • Ultima risposta di cor-el

more options

Is it possible to uncorrupt a .json file? Screenshot included.

Is it possible to uncorrupt a .json file? Screenshot included.
Immagini allegate

Tutte le risposte (9)

more options

Is that a FF file?

more options

If file content has been replaced with random garbage, there's no way to restore the original characters, you would only be able to work with the existing text. Most likely it will never be valid JSON again.

If the unreadable characters are the result of some known method of encoding or compression, you could try to reverse the encoding or decompress the text. However, it looks more like garbage to me.

If I recall correctly, this file was recovered from a Windows restore point. You could ask on a Windows forum whether any tools or techniques are available to more cleanly extract the original file than the methods I was aware of.

more options

This looks like the extensions.json file that stores the extensions registry. Firefox would normally create a new file if you would remove the current copy.

Any reason you want to use this specific file?

more options

cor-el said

Any reason you want to use this specific file?

This is a follow-on to: https://support.mozilla.org/questions/1225040

more options

Thanks Jeff, I had forgotten about that thread.


If a search in that corrupted file for Stylish doesn't come with results then the file if of no use.

Otherwise you can paste the Stylish section from this file in a reply.

more options

What other methods for encoding or compressing the file are there?

more options

The extensions.json file is not compressed and there is not need to make such changes to the file format.

The extensions.json file is a plain text file and it would be a taunting task trying to repair the file since that would require to remove the corrupted parts and make sure to add missing opening and closing quotes and curly and square brackets. This requires a good understanding of how JSON works. I don't know it there are utilities that can repair a file that is severely broken like yours.

more options

Does anyone else know of a possible solution?

more options

A file that is corrupted in the way the screenshot in your question shows is beyond repair. You might be able to extract some useful data and use this data to generate a new file, but that would be a lot of effort.