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 that's true, yeah I don't it matters that much. Thanks!