

def _to_base_type(self, value):
    try:
        import json
    except ImportError:
        import simplejson as json
    return json.dumps(value)

dataset/ETHPy150Open GoogleCloudPlatform/datastore-ndb-python/ndb/model.py JsonProperty._to_base_type/original