code: def db_value(self, value):
          
          # Everything is encoded being before being surfaced
          value = flask.json.dumps(value)
  
          return super(JSONField, self).db_value(value)
docs: Store the value in the database.
  
          If the value is a dict like object, it is converted to a string before
          storing.