use helper for toJson enumeratee