def _to_base_type(self, value):
    try:
      import json
    except __HOLE__:
      import simplejson as json
    return json.dumps(value)
dataset/ETHPy150Open GoogleCloudPlatform/datastore-ndb-python/ndb/model.py/JsonProperty._to_base_type