Replit Database - How do I return the list of keys as JSON?

Hello there,
I'm trying to make a submit system in Express, but I need it to be returned as a JSON.
I tried this:

but everytime i make a GET request to /getDataBase, it doesn't return anything. Could anyone help?

You are viewing a single comment. View All

oh i see, your db must have had an error, or ctr == keys.length was never met. @Seven7Four4