How do you uncorrupt a .json file?
Is it possible to uncorrupt a .json file? Screenshot included.
Tutte le risposte (9)
Is that a FF file?
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.
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?
cor-el said
Any reason you want to use this specific file?
This is a follow-on to: https://support.mozilla.org/questions/1225040
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.
What other methods for encoding or compressing the file are there?
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.
Does anyone else know of a possible solution?
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.