skip to Main Content

Javascript – Enum in Google Scripts

If I understood correctly, there is no enum in Javascript/Google Scripts (I'm a Javascript novice, so I know just the basics of it). To overcome this, one can define a list of constants, like: const COLUMNS_INDEXES { FIRST_NAME: 1, LAST_NAME:…

VIEW QUESTION

Java Json enum deserialization

JSON enum deserialization is not working. Interface: @JsonTypeInfo( use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property="rlType" ) @JsonSubTypes({ @JsonSubTypes.Type(value = B.class) }) public interface IA { } B class @JsonTypeInfo(use = JsonTypeInfo.Id.NONE) public enum B implements IA { X, Y, Z…

VIEW QUESTION
Back To Top
Search