read enums from kson,json