def METHOD_NAME(name: str) -> SynonymProperty:
    """Use json to serialize python objects for db storage."""
    def getter(self) -> Any:
        return json.loads(getattr(self, name), decode_datetime=True)
    def setter(self, entry: Any) -> None:
        setattr(self, name, json.dumps(entry, encode_datetime=True))
    return synonym(name, descriptor=property(getter, setter))