lifelogd: provide a json serializer for entries