I've tried reading the docs here and following the answers here but neither worked.
Here's what I put into datastore:
{'a': 'b', 'c': {'d': 'f'}}
If I query it I get:
<Entity('MyKind', 1232141232id) {'a': 'b', 'c': <Entity {'d': 'f'}>}>
I'm using google-cloud-python (which is recommended in docs) instead of ndb so I can't use:
from google.appengine.ext import db
db.to_dict(entity)
If I try to cast dict(results[0])
I get:
{'a': 'b', 'c': <Entity {'d': 'f'}>}
^^ This is almost what I need except for the nested Entity.
Any recommendations for the best way to do this? It seems like there would be a function for this but I just can't find it.