MongoEngine / MongoEngine/mongoengine
json serialize python\mongoengine object mix
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 4.3k
- Forks
- 1.2k
- Avg merge
- 4h 41m
- Merged PRs (30d)
- 11
Description
ticket #1 made sure it's easy to json serialize mongoengine objects. However, in many cases an API returns more than one object, e.g. a list of Documents or a dictionary where some of the values are Document.
Feature request: include a utility method that json serializes\deserializes any mix of native python and mongoengine objects.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the serialization support introduced for ticket #1 and the existing MongoEngine serialization entry points. Define the expected behavior for mixed native Python values, lists of Documents, and dictionaries containing Documents, including deserialization, then add coverage showing these combinations round-trip correctly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- mongodb, python
- Domain
- databases
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100