File issue parsing

Im experiencing issues with my glitch projects

when ever i add the data into the json files
the editor just deletes the insides of if causing downtime any reason why

Hi there @godboyxd. json isn’t very good for storing data because they corrupt easily. I suggest trying one of following which is better and has a less risk of corruption:

Quick.db – https://www.npmjs.com/package/quick.db (Best for Starters)
Endb – https://github.com/chroventer/endb
Enmap – https://www.npmjs.com/package/enmap
Better-Sqlite3 – https://www.npmjs.com/package/better-sqlite3
Mongoose – https://www.npmjs.com/package/mongoose
Postgres – https://www.npmjs.com/package/pg
html-db – https://yarnpkg.com/en/package/html-db

1 Like

Glitch has some problems, but I don’t think that that is the issue.

You can also use modules.export() in js.