How to move from replit db to mongodb?

I want to move the contents of my db from replit db to MongoDB. I have written this code to try to move it:

however I get an error telling me that:
Object of type ObservedDict is not JSON serializable

how can I solve this

You are viewing a single comment. View All

@MrVoo The reason I want to move it is because I want the database to be accessed by multiple programs, not just than one replit project, and also for the future if I want to move my project to a different platform