WEEE-Open / skeeelled

An e-learning platform for the modern age
https://weee-open.github.io/skeeelled
5 stars 7 forks source link

JSON serialize ObjectId #111

Closed e-caste closed 2 years ago

e-caste commented 2 years ago

Right now the ObjectId class is not JSON serializable -- but the frontend is based on the fact that the id of an object is available (so that it can perform searches and fetches)!

Either use a class for the object-to-JSON conversion or override a method of that class or find another standard way to deal with this.