since a set is not JSON serializable, return a list in debug mode