I am attempting to serialize enums using the jackson.js library. I encountered it quite recently and would like to use it for serializing and deserializing my Typescript enums but I no idea how to do so. I looked for examples using enums but found nothing even in looking at the. tests for the library. Here are the formats of the enums I wish to serialize;
enum BooleanLikeHeterogeneousEnum {
No = 0,
Yes = "YES",
}
and this:
enum Direction {
Up = "UP",
Down = "DOWN",
Left = "LEFT",
Right = "RIGHT",
}
Please help.