You do realize that a RDBMS is a system for managing flat files, right? They all store their contents in various files on disk.
I am highly suspicious that you've actually encountered database corruption with an RDBMS. That's incredibly unlikely as they are purposefully designed to be extremely fault tolerant (much more fault tolerant than whatever you would come up with yourself).
What you are talking about is reinventing a bad RDBMS. JSON is a textual format for human consumption, not one that is at all fit for efficient data storage and access.